how to write an array node.js code example Example: declare an array nodejs var arr1 = new Array(); var arr2 = [];