📅  最后修改于: 2022-03-11 15:04:31.960000             🧑  作者: Mango
The array in JavaScript can be created by using var keyword followed by array name as shown below:
var NumArr = [1,2,3,4,5];
You can create JavaScript array with mixed data types as well, for example, array containing both numbers and strings:
var MixArr = [1, “Mixed”, 2, “Array”];