dev_tools
JavaScript reference data types
Object Objects are separated by curly braces. Inside the brackets, the properties of the object are defined in the form of name and value pairs (name: value), also called json. The attributes are separated by commas, and spaces and line breaks are not important. The statement can span multiple lines. Define an object, name: Keafmd, age: 18, address: Beijing, isEdu: false Sample code: var Ke = { 'name':'Keafmd', 'age': 18, address:'Beijing', isEdu:false } console.log(Ke) Copy code Complete code: