How to create Objects in Javascript ?

Answer

It is most important data types and forms the building blocks of modern data types. It is different from Javascript primitive data type(number,string,booleans,etc).


There are 3 ways to create objects:


1)By Object literals
object={property1:value1,property2:value2.....propertyN:valueN}

2)By Creating instance of Object directly
var objectname=new Object();

3)By using an Object Constructor : We have to create function with arguements.Arguements value can be assigned in the current object by using this keyword.

All sql queries Questions

Ask your interview questions on sql-queries

Write Your comment or Questions if you want the answers on sql-queries from sql-queries Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---