What are the different ways to create an array in javascript?
Answer / Amit Kumar Singh
Arrays can be created in JavaScript using the Array constructor (e.g., var arr = new Array()), array literal syntax (e.g., var arr = []), or by assigning a comma-separated list of values to a variable (e.g., var arr = [1, 2, 3]).
| Is This Answer Correct ? | 0 Yes | 0 No |
How to add buttons in javascript?
how to run java script program
How are tag positions used in javascript?
How can I request data from the server without reloading the page in the browser?
How to use one javascript function for multiple input fields?
Whether JavaScript has concept level scope?
What is MEAN in javascript
How to remove duplicates from javascript array?
About document.getElementID? Explain giving one example. This was asked by a interviewer when i said that i know some JavaScript.
What are the properties of stack?
What does the delete operator do?
Which company developed JavaScript?