How do you assign object properties?

Answer Posted / team sam onn

var obj=new Object();
obj["age"]=18; or obj.age=18

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enum in javascript?

608


What data types are supported in Javascript?

520


What is the difference between let and var?

557


What are javascript closures?when would you use them?

540


What is javascript bom?

568






What is NaN in Javascript?

533


What is a closure javascript? Explain

492


What is class example?

490


What is the purpose of local variables?

471


Is javascript becoming obsolete?

476


What are the different objects used in javascripts?

483


What percentage of websites use javascript?

509


How to create the namespace in javascript?

559


Why would you use a sticky session?

517


List html dom mouse events?

513