📜  如何在javascript代码示例中制作和添加到数组

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

代码示例4
var arrayExample = [53,'Hello World!'];
console.log(arrayExample) //Output =>
[53,'Hello World!']

//You can also do this
arrayExample.push(true);

console.log(arrayExample); //Output =>
[53,'Hello World!',true];