0
I can add more arrays even if I mention the number of arrays in my code
var courses = new Array(3); courses[0] = "HTML"; courses[1] = "CSS"; courses[2] = "JS"; courses[3] = "Swift"; courses[4] = "Java"; document.write(courses[4]); My output is: Java Why? It should not store more than 3 arrays.
2 Respuestas
+ 1
Because declaring an array does not require you to state what is the length of the array. Declaring an array is simply var courses = []
+ 1
YES U CAN ARUN. .pls follow me ARUN MV