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 we create an object in JS?
Home
JavaScript
How can we create an object in JS?
+1
vote
asked
Jul 16, 2019
in
JavaScript
by
Indian
How can we create an object in JS?
#java-script
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 16, 2019
by
Indian
var object = { name: "obj", age: 10 };
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+2
votes
Q: How to create an array in js and how to read array elements?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
Q: How to add/remove properties to object dynamically in Javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
Q: How can you move element in lowercase to uppercase from an array?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+3
votes
Q: I want to re-reach and use an object once it has been garbage collected. Define How it’s possible in Java?
asked
May 31, 2020
in
JAVA
by
SakshiSharma
#java-research
#java-garbage-collect
#java-define
#java-script
#java-games
#games-java
Java-questions-answers
0
votes
Q: What is an object ?
asked
Jun 16, 2019
in
JAVA
by
reins.robin
#java
#java-script
#java-interview
#java-question
#java-interview-question
Java-questions-answers
+2
votes
Q: How to add one new element at end of an array in javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
Q: How to define an anonymous function?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
Q: How to create an object in EXT JS?
asked
Aug 17, 2020
in
JavaScript
by
RShastri
#extjs
+1
vote
Q: Which built-in method reverses the order of the elements of an array?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
Q: Which built-in method sorts the elements of an array?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
...