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();”

Questions & AnswersCategory: Programming LanguageWhich 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();”
Adam asked 3 years ago

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();”

a. I, II & III

b. I, II

c. I, III

d. II, III