The Student Room Group

HELP ME!

I need help with Silver badge, the code is:
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

}
}

lifeSupportCheck();

It's driving me Nuts, can somebody help me answer this?

Reply 1

Original post
by Demon-C01n
I need help with Silver badge, the code is:
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

}
}

lifeSupportCheck();

It's driving me Nuts, can somebody help me answer this?

What is the actual question? What are you being asked to do?

Reply 2

Original post
by DataVenia
What is the actual question? What are you being asked to do?

I'm on a new Question, here's the code:

var rooms = [bridge,lab,canteen,cabin,storage]
initiate();
function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
rooms[i];
}
}
lifeSupportCheck();
I'm stuck on it, can you help me?

Reply 3

Original post
by Demon-C01n
I'm on a new Question, here's the code:

var rooms = [bridge,lab,canteen,cabin,storage]
initiate();
function lifeSupportCheck() {
for (i=0;i<rooms.length;i++) {
rooms;
}
}
lifeSupportCheck();
I'm stuck on it, can you help me?

That's the code, but what's the question or instruction? What are you being asked to do?

Are you being asked what the expected result of running the code would be? Or are you being asked to rewrite it in a more efficient manner? Or are you being asked to spot and fix a bug. Are you being asked to count the number of semi-colons?!

It just makes no sense that they would present some code with no indication of what they want you to do. :confused:

Quick Reply

How The Student Room is moderated

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