How are object properties assigned?
You can assign properties to object by simply using the dot (.) operator.
Example:
var obj = {}
obj.name = 'Vidhushi'
console.log(obj.name) // 'Vidhushi'
How are object properties assigned?
You can assign properties to object by simply using the dot (.) operator.
Example:
var obj = {}
obj.name = 'Vidhushi'
console.log(obj.name) // 'Vidhushi'