Skip to content

JavaScript Objects

Marie-Louise edited this page Aug 20, 2018 · 8 revisions

Objects are similar to variables, but instead they can contain many values. Each value is written as a pair separated by a semicolon i.e name:value .

var car = {type:"Fiat", model:"500", color:"white"};

Clone this wiki locally