The Student Room Group

Silver Idea Badge - Maker Part 2

Basically, Iḿ stuck on the second part, the code is like this
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
rooms;
}
}

lifeSupportCheck();

Scroll to see replies

Reply 1
hi on line 7 put rooms hope this helps
how do we do the lifeSupportOn() function?
Original post by Aliza515
how do we do the lifeSupportOn() function?

Have you found out the answer
need help on this aswell
Original post by Aliza515
how do we do the lifeSupportOn() function?


i dont know like i mean its bare hard
Original post by ideauser123
i dont know like i mean its bare hard

did you find out?
Reply 7
On line 7:lifeSupportOn(rooms)
Reply 8
ill tri that now
(edited 3 years ago)
Reply 9
Original post by hannah46
On line 7:lifeSupportOn(rooms)

it does not work for me
Original post by safaxx
Basically, Iḿ stuck on the second part, the code is like this
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
rooms;
}
}

lifeSupportCheck();

I'm stuck
To call the lifeSupport function you do this:

initiate()
function lifeSupportCheck(){

}
lifeSupportCheck()
(edited 3 years ago)
Original post by username4600210
how do we do the lifeSupportOn() function?

initiate();
function lifeSupportCheck() {
}
Reply 13
Original post by hannah46
On line 7:lifeSupportOn(rooms)

thanks so much omg!!!!
iDEA - The Digital Adventurer Part Two and 1 more page - Personal - Microsoft&#8203; Edge 09_07_.png
Does anyone know how to do this?
You have to write a loop and inside the loop you must call the playSound() function and pass the soundBlock object into it

Edit: I got the answer here it is for anyone else who needs it:

var soundBlocks = [crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}
(edited 2 years ago)
same i need help
Original post by Martyna75
initiate();
function lifeSupportCheck() {
}


Original post by Abijoa
thanks so much omg!!!!

it doesn't work for me
The third one tho
Original post by robot173619
have you found out the answer


nooooooooooooooooooooooooooo
i need help on the resolution

Original post by Wjcool2000
nooooooooooooooooooooooooooo

Quick Reply

Latest

Trending

Trending