What is array constructor in javascript?
Answer / Hari Keshwar Prasad
The Array constructor in JavaScript creates a new Array object. It can take an optional parameter that specifies the number of elements in the array, where each element is initially set to the specified value (usually undefined). Example: `let arr = new Array(3); // creates an array with 3 empty elements.`
| Is This Answer Correct ? | 0 Yes | 0 No |
What can I build with javascript?
To write messages to the screen without using "document.write()"?
How do you name a variable in javascript?
Explain “use strict” ?
How to port a GUI application onto Web
What is javascript and how it works?
What is the similarity between the 1st and 2nd statement?
Where do I put javascript code in html?
How to display Alert in JavaScript
What is the difference between null & undefined?
Which is faster jquery or javascript?
What are the different types of errors supported by javascript?