Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

creating an object javascript

let obj = {
// fields
  name:"value",
  num: 123,
//methods
  foo: function(){}
  
}
 
PREVIOUS NEXT
Tagged: #creating #object #javascript
ADD COMMENT
Topic
Name
2+3 =