The Student Room Group

Silver iDEA badge - Maker Part 2

how to do this?:it says i need to loop and 'Write rooms inside the loop, then press `Run Code`.'var rooms = [bridge,lab,canteen,cabin,storage]initiate();function lifeSupportCheck() {for (i=0;i<rooms.length;i ) {}}lifeSupportCheck();

Reply 1

i think im a bit late ahaha but on the 7th row down write rooms

Reply 2

Original post by connier0037
i think im a bit late ahaha but on the 7th row down write rooms

Hey im late but it isnt working

Reply 3

Original post by daf2014
Hey im late but it isnt working

hey, instead of writing just rooms on the 7th line, write rooms with a bracket, an i then bracket again (it wont let me type it) but use the straight brackets
rooms(i) but these [
(edited 1 year ago)

Quick Reply