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 webassembly good for?

439


Is there any ide for javascript?

522


Where can I learn javascript for free?

495


Explain how can you submit a form using JavaScript?

486


How to setting a cookie with the contents of a textbox?

524






What is the most popular javascript library?

453


How to open a window with no toolbar, but with the location object?

467


What is console.time() and console.timeend()? What is its syntax, and why is it used?

524


What is the use of Void(0)?

598


How to getting values from cookies to set widgets?

471


How javascript variables work?

459


What is a Typed Language?

581


how do you declare variables in javascript?

480


Can you assign a anonymous function to a variable?

527


What is triple dot in javascript?

507