Home » Interview » Technology

How to create arrays in JavaScript?

Correct Answer: Arrays are created by using new Array() in Java Script For example : var employees = new Array(); The elements to this array is assigned as follows : employees[0] = "Kumar" employees[1] = "Fedrick"

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion