Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array erstellen

values = [];
for (var x = 0; x < 10; x++){
 values.push([
  2 ** x,
  2 * x ** 2
 ])
};
console.table(values)
/*Resultat
0   1   0
1   2   2
2   4   8
3   8   18
4   16  32
5   32  50
6   64  72
7   128 98
8   256 128
9   512 162
*/
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #array #erstellen
ADD COMMENT
Topic
Name
1+9 =