Help would be appreciated,to read key from an object, the key is separated with space
var Obj = {
student class: '4th',
student roll: '24'
}
console.log(obj.student class) ? throws error.
console.log(obj.student roll) ? throws error.
Help would be appreciated,to read key from an object, the key is separated with space
var Obj = {
student class: '4th',
student roll: '24'
}
console.log(obj.student class) ? throws error.
console.log(obj.student roll) ? throws error.