TypeError: Cannot set properties of undefined (setting '0')

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


var complexArr =[1,5,2,6,"word"];
i32view[0] = 64;
console.log(i32view);
var bytesize = 64;
var buffer = new Arraybuffer(bytesize);
var i32view = new Init32Array(buffer);
buffer.byteLength;
i32view.byteLength;
console.log(i32view);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

Challenge: Typed Arrays

Link to the challenge:

You are assigning a value to “i32view” before declaring it.