The Student Room Group

I still cant figure this out someone pls helppp

var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<movementBlocks.length;i++) {
doMovement(movementBlocks)
}
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks);
}
soundBlocks[1]=happyBeep;
print(soundBlocks[1]);
Original post by kaiii.tpp
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<movementBlocks.length;i++) {
doMovement(movementBlocks)
}
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks);
}
soundBlocks[1]=happyBeep;
print(soundBlocks[1]);

What can't you figure out? What question / problem are you trying to solve?

(And why does line 2 reference a variable called movementBlocks which has neither been declared nor initialised?)

Quick Reply

Latest