const a = new Int8Array(1); a[0] = 56; a[0]++; console.log('56 plus 1 is ' + a[0]); for (a[0] = 0; a[0] < 10; a[0]++) { console.log('counter is ' + a[0]); }
Programming Tips - javaScript: declare an integer
Date: 2023jan13
Language: javaScript
Q. javaScript: declare an integer
A. All numbers in javaScript are floats... unless you use this trick.