📜  如何在 javascript 代码示例中创建混合数组

📅  最后修改于: 2022-03-11 15:04:31.960000             🧑  作者: Mango

代码示例1
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”];