The Student Room Group

Idea badge silver maker part 2!!!!

Scroll to see replies

Reply 40
I made this thread
Reply 41
whats on line 6
Original post by tinyminy13
You just need to add the code lifeSupportOn(rooms) on line 7.

doesnt work for me?
Original post by tinyminy13
You just need to add the code lifeSupportOn(rooms) on line 7.

it doesnt work for me
Reply 44
Original post by dalbyc
some one help with this im dumb as so
now we need to call our new function, just like we have done with the initiate() function. call the function you just wrote, in the same way you called initiate(), then press `run code`.

var rooms = [bridge,lab,canteen,cabin,storage]
initiate();
function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
lifeSupportOn(rooms);
}
}
lifeSupportCheck();

Quick Reply