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
Which is the correct way to create an array in JavaScript? I) var myProg = []; II) var myArray = ["C","Java","C++","Python"]; III) var myProg = new Array();
Home
JavaScript
Which is the correct way to create an array in JavaScript? I) var myProg = []; II) var myArray =...
+1
vote
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
Which is the correct way to create an array in JavaScript? I) var myProg = []; II) var myArray = ["C","Java","C++","Python"]; III) var myProg = new Array();
I, III
I, II & III
II & III
I, II
#java-script-array
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 7, 2020
by
SakshiSharma
I, II & III
Related questions
+1
vote
Q: What is true about functions? I) Functions are objects; II) Can be assigned to a variable; III) Can be anonymous; IV) Return value type has to be defined in function declaration
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
#functions-java
0
votes
Q: 1. What are the characteristics of tightly coupled system? i) Same clock, usually shared memory ii) Communication is via this shared memory iii) Multiprocessors iv) Different clock
asked
Oct 17, 2022
in
Other
by
AdilsonLima
distributed-opererating-system-mcqs-coordination
0
votes
Q: Natives apps can be downloaded from (I) App Store (II) Enterprise Distributed Mechanism (III) Market Place of the Device
asked
Dec 16, 2021
in
Hybrid Apps
by
sharadyadav1986
native-apps
+1
vote
Q: While creating maven project, we must enter value for i. groupId ii. artifactId iii. package iv. version
asked
Jan 30, 2020
in
Azure
by
Tate
+1
vote
Q: Which of the following is the correct way to create an array in PHP?
asked
May 13, 2022
in
PHP
by
john ganales
create-array
0
votes
Q: Syntax for creating a RegExp object: 1. var txt=new RegExp(pattern,attributes); 2. var txt=/pattern/attributes; Which of the above mentioned syntax will correct?
asked
Oct 9, 2022
in
JavaScript
by
Robin
javascript
code
0
votes
Q: What is the output of following Javascript? var a = 'letsfind'; var b = 'course'; var c = a/b; document.write(c);
asked
Oct 9, 2022
in
JavaScript
by
Robin
javascript
code
0
votes
Q: What is the easiest way to resize an array in Javascript?
asked
Oct 24, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the easiest way to convert an array to an object in javascript?
asked
Oct 21, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-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
...