Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

object js

let object = {
	name : "Petya",
  	age : 15
};

// another way
let object = new Object();
object["name"] = "Petya";
object["age"] = 15;

// old way
var object = new Object()
object.name = "Petya";
object.age = 15;
 
PREVIOUS NEXT
Tagged: #object #js
ADD COMMENT
Topic
Name
6+8 =