How can I define an array in JavaScript?

Answer Posted / hiren garasia

array arrayname=new array[];

Is This Answer Correct ?    17 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Typed Language?

581


What is the javascript function?

522


What are parameters in javascript?

473


Does apple use javascript?

438


What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?

521






Write a main method that prompts the user to enter the starting population, birth and death rates, and the number of years. The input birth and death rates cannot be negative, the starting population cannot be less than 2, and the number of years greater than 0. If the user enters an invalid value, this program will prompt user to re-enter the value until a valid value has been read. When all input values are valid, call on the methods above to compute estimated population and print result.

1812


What is npm repository?

466


What is the benefit of arrow functions?

465


What Does JavaScript Void(0) Mean?

524


How do you check if a variable is an object

533


What output will this program produce System.out.println(x+"+"+y+"="+(x+));

1558


Difference between Client side JavaScript and Server side JavaScript?

553


How to call a function in every x seconds in javascript?

508


How do I add javascript to chrome?

518


What are the ways of making comments in javascript?

445