javascript - declare array with literal notation

JavaScript
voted: 0
vote
array declaration

In Javascript array can be declared using literal notation like this:

var arrayName= [];
var arrayName2 = ["tomato", "potato", "banana"];
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.