Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How can you create an Object in JavaScript?
Home
JavaScript
How can you create an Object in JavaScript?
0
votes
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
How can you create an Object in JavaScript?
javascript-object
object-in-javascript
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 19, 2019
by
rajeshsharma
JavaScript supports Object concept very well. You can create an object using the object literal as follows −
var emp = {
name: "Zara",
age: 10
};
Related questions
0
votes
Q: How can you create an Array in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
javascript-object
object-in-javascript
javascript-array
array-in-javascript
0
votes
Q: What is arguments object in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
javascript-object
object-in-javascript
properties-javascript
0
votes
Q: In JavaScript, what is argument object and how can you get argument types passed to a function?
asked
Sep 19, 2021
in
JavaScript
by
sharadyadav1986
javascript-object
0
votes
Q: Which of the following number object function returns the value of the number?
asked
Mar 20, 2021
in
JavaScript
by
sharadyadav1986
object-function
javascript-object
0
votes
Q: Which of the following givenfunctions of the Number Object formats a number with a different number of digits to the right of the decimal?
asked
Mar 20, 2021
in
JavaScript
by
sharadyadav1986
javascript
javascript-object
object-javascript
0
votes
Q: How can you read properties of an Object in JavaScript?
asked
Oct 19, 2019
in
JavaScript
by
SakshiSharma
properties-javascript
javascript-properties
properties-of-javascript
+1
vote
Q: How can we create an object in JS?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
0
votes
Q: How do you check an object is a promise or not Javascript?
asked
Oct 24, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: How do you make an object iterable in javascript ?
asked
Oct 24, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-qusetions-answers
0
votes
Q: How do you define multiple properties on an object in Javascript?
asked
Oct 13, 2023
in
JavaScript
by
GeorgeBell
javascript-interview-questions-answers
...