New course! Every coder should learn Generative AI!
Try a free lesson0
Can I add 10th element without the other first 9 in an arrow??
11 Answers
+ 5
Yes of course.
You can add the 10th element without the other 9 arrays.
var courses = new Array();
courses[9] = "JS";
+ 2
what course?
+ 1
JavaScript
+ 1
What you mean ;
to select or to add
+ 1
Add
+ 1
Give example of code.
+ 1
"JavaScript arrays are dynamic, so you can declare an array and not pass any arguments with the Array() constructor. You can then add the elements dynamically."
This is the context
+ 1
just wait.
+ 1
Yes.
+ 1
James Clark I. Vinarao that was what I was saying
0
Sigauq
Yeah of course it is possible
But the other elemets may contain either zero or any garbage values