Ellielouiselogan
Badges: 3
Rep:
?
#1
Report Thread starter 1 year ago
#1
Having trouble with the idea maker 2 badge on the sound blocks, so far I have done this:

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

it says to
"Loop through soundBlocks
call the playSound() function
Pass the correct sound from your sound array into it"
0
reply
hollyc0389
Badges: 4
Rep:
?
#2
Report 1 year ago
#2
its case sensitive and your (I) needs to be [i] lower caseJavaScript is always case sensitive so I'd check that if I were you 😃👍
0
reply
Hannah_VMT
Badges: 1
Rep:
?
#3
Report 1 year ago
#3
(Original post by hollyc0389)
its case sensitive and your (I) needs to be [i] 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
Attached files
0
reply
hollyc0389
Badges: 4
Rep:
?
#4
Report 1 year ago
#4
(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
I managed to complete it, it took me a while
var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks[i]);
}

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?
3
reply
tian snipes
Badges: 1
Rep:
?
#5
Report 1 year ago
#5
(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[i]);
}

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
0
reply
username5508872
Badges: 2
Rep:
?
#6
Report 7 months ago
#6
It doesn’t work for me!
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Are you tempted to change your firm university choice on A-level results day?

Yes, I'll try and go to a uni higher up the league tables (59)
29.5%
Yes, there is a uni that I prefer and I'll fit in better (15)
7.5%
No I am happy with my choice (110)
55%
I'm using Clearing when I have my exam results (16)
8%

Watched Threads

View All