The Student Room Group

Scroll to see replies

Reply 1

its case sensitive and your (I) needs to be lower caseJavaScript is always case sensitive so I'd check that if I were you 😃👍

Reply 2

Original post
by hollyc0389
its case sensitive and your (I) needs to be lower caseJavaScript is always case sensitive so I'd check that if I were you 😃👍

Can you help me please? I've been stuck on this for 3 days and I can't get it to work
We're just checking this attachment, please wait...

Reply 3

Original post
by Hannah_VMT
Can you help me please? I've been stuck on this for 3 days and I can't get it to work
We're just checking this attachment, please wait...

I managed to complete it, it took me a while
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}

thats the correct answer, if when you have done you get to web design idea maker badge 3 and do it please let me know and give me a hand?

Reply 4

Original post
by hollyc0389
I managed to complete it, it took me a while
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}

thats the correct answer, if when you have done you get to web design idea maker badge 3 and do it please let me know and give me a hand?

thank you

Reply 5

It doesn’t work for me!

Reply 6

I am stuck on debugging the code for movement pls someone help

Reply 7

Original post
by hollyc0389
I managed to complete it, it took me a while
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}

thats the correct answer, if when you have done you get to web design idea maker badge 3 and do it please let me know and give me a hand?

so i tried to use this code and it didnt work so if possible can i recieve more help. this was my code:
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++){
playSound(soundBlocksi])
}

Reply 8

Original post
by tian snipes
thank you

This is the correct answer

Reply 9

Original post
by Fiona78
This is the correct answer

It might be but it isn't working when I typed in.

Reply 10

correct answer everyone:


var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks);
}

EVERYONE MISSES THIS OUT IN THEIR ANSWER ON HERE (bold)

Reply 11

Original post
by Speedymr
correct answer everyone:
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks);
}
EVERYONE MISSES THIS OUT IN THEIR ANSWER ON HERE (bold)

which bit is supposed to be bold

Reply 12

Original post
by izzychap
so i tried to use this code and it didnt work so if possible can i recieve more help. this was my code:
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++){
playSound(soundBlocksi])
}

It doesn't work for me. I've been stuck for hours. Anyone help?

Reply 13

I finally work it out and I really passed that

var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks);
}

Reply 14

Original post
by BiancaSoo
I finally work it out and I really passed that
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks);
}

it doesn't work for me

Reply 15

var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{playSound(soundBlocks);}

Reply 16

Original post
by Fiona78
This is the correct answer

var soundBlocks = [crash,happybeep,whistle];
for (i=0;i<soundBlocks.length;i++) {
playSound(soundBlocks[i]);}

Reply 17

var soundBlocks = [crash,happybeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks "[i]" );
}

You guys are forgetting the "" part of the code.
Take away the quote marks from the i when putting it in
(edited 1 year ago)

Reply 18

Original post
by izzychap
so i tried to use this code and it didnt work so if possible can i recieve more help. this was my code:
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++){
playSound(soundBlocksi])
}

thanks so much this really helped been strugling for hours

Reply 19

Original post
by hollyc0389
I managed to complete it, it took me a while
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}
thats the correct answer, if when you have done you get to web design idea maker badge 3 and do it please let me know and give me a hand?

it did not work for me

How The Student Room is moderated

To keep The Student Room safe for everyone, we moderate posts that are added to the site.