Answers for "declare an array nodejs"

6

how to create an array in node js

// Don't need to provide elements directly, but you can

// FIRST OPTION
var myArray = new Array(/*elements1, elements2*/);

// SECOND OPTION
var mySecondArray = [/*element1, element2*/];
Posted by: Guest on January-24-2021
0

declare an array nodejs

var arr1 = new Array();
var arr2 = [];
Posted by: Guest on December-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language