+ 2
How do we construct an object in JavaScript
2 Answers
+ 18
var obj = {
val1: 5,
val2: "some text"
}
For more info you can visit:
https://coderwall.com/p/p5cf5w/different-ways-of-creating-an-object-in-javascript
+ 15
https://www.sololearn.com/learn/JavaScript/1151/
https://www.sololearn.com/learn/JavaScript/2975/