How can you create an object in JavaScript?

0 votes
Can you help me with the code snippet for the same?
Mar 6, 2019 in Others by Neha
• 6,300 points
67 views

1 answer to this question.

0 votes

JavaScript supports Object concept very well. You can create an object using the object literal as follows −

var emp = {
name: "Daniel",
age: 23
};

answered Mar 6, 2019 by Frankie
• 9,810 points

Related Questions In Others

0 votes
1 answer

How to create an Icon Button in Flutter?

Hi@akhtar, To create an Icon Button in Flutter, ...READ MORE

answered Jul 24 in Others by MD
• 56,480 points
42 views
0 votes
1 answer

How to create an input field in Flutter?

Hi@akhtar, There are different ways to create an ...READ MORE

answered Aug 9 in Others by MD
• 56,480 points
38 views
0 votes
1 answer

How to create an Alert Button in Flutter?

Hi@akhtar, You can do this with the help ...READ MORE

answered Sep 3 in Others by MD
• 56,480 points
48 views
0 votes
0 answers

Can we write AES enryption in Javascript and Decryption in Java using a static SALT and IV

I'm working on AES encryption I want to ...READ MORE

Jun 3, 2019 in Others by Eighteen
• 120 points
660 views
0 votes
1 answer

Presenting docket dtates inside html page by javascript

Use the Docker Engine Api:Docker Engine API ...READ MORE

answered Jun 20, 2018 in Docker by DareDev
• 6,850 points
89 views
0 votes
1 answer

Migrating proxy npm repo in nexus 3

I don't think you can achieve this ...READ MORE

answered Jun 22, 2018 in DevOps Tools by DareDev
• 6,850 points
472 views
+1 vote
1 answer

What is the difference between JavaScript and Java

This quote rightly explains that 2 totally ...READ MORE

answered Jun 29, 2018 in Java by Daisy
• 8,110 points
111 views
0 votes
1 answer

How can you create an Array in JavaScript?

You can define arrays using the array literal as ...READ MORE

answered Mar 6, 2019 in Others by Frankie
• 9,810 points
89 views
0 votes
1 answer

What is a name function in JavaScript & how to define it?

A named function declares a name as ...READ MORE

answered Mar 6, 2019 in Others by Frankie
• 9,810 points
99 views