Tell us what’s happening:
Describe your issue in detail here.
Your code so far
var buffer = new ArrayBuffer(64);
var i32View = new Int32Array(buffer) ;
console.log(i32View)
Your buffer should be 64 bytes large.
Your i32View view of your buffer should be 64 bytes large.
Your i32View view of your buffer should be 16 elements long.
{ '0': 0,
'1': 0,
'2': 0,
'3': 0,
'4': 0,
'5': 0,
'6': 0,
'7': 0,
'8': 0,
'9': 0,
'10': 0,
'11': 0,
'12': 0,
'13': 0,
'14': 0,
'15': 0 }
This passes, but I’m confused. The examples imply that an array should be returned, but I see an object in console.log? is that something that changed since this exercise was implemented?
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Challenge: Typed Arrays
Link to the challenge: