TypedArr (TC03)
1: const numbers = [1, 2, 3, 4];
2: const uint16Array = new Uint16Array(numbers);
3: console.log(uint16Array); //Output: Uint16Array(4) [ 1, 2, 3, 4 ]
Creating Typed Arrays: From an array of numbers: Uint16Array(4) [ 1, 2, 3, 4 ]
TypedArr context:
ES6 context:
Binary context:
Comments (
)
)
Link to this page:
http://www.vb-net.com/JavascriptES6/TC03.htm
|
|