Array built-in

://.+.mozilla.org/ja/docs/Web/JavaScript/Reference/G?l?o?b?a?l?_Objects/Array#create_an_array

Information for tab 1

var fruits = ['Apple', 'Banana'];

Information for tab 2

var fruits2 = new Array('Apple', "Banana");

Information for tab 3

// 'fruits3' array created using `String.prototype.split()`.
var fruits3 = "Apple, Banana".split(", ");

Information for tab 4

Another line of information.

Information for tab 1

var fruits = ['Apple', 'Banana'];

Information for tab 2

var fruits2 = new Array('Apple', "Banana");

Information for tab 3

// array created using `String.prototype.split()`.
var fruits3 = "Apple, Banana".split(", ");

Information for tab 4

Another line of information.

// 'fruits' array created using _array literal notation._
var fruits = ['Apple', 'Banana'];


// 'fruits2' array created using the `Array()` varructor.
var fruits2 = new Array('Apple', "Banana");


// 'fruits3' array created using `String.prototype.split()`.
var fruits3 = "Apple, Banana".split(", ");