The Student Room Group

Idea Silver Maker Two Badge (Coding)

I am stuck on the Coding section of the idea maker two silver badge.

Am i being stupid or is there a simple way to complete the first section on how to create a life support function?
Capturehgfdhfgh.PNG
Is this how you do it or am i being really dumb?
Original post by Superhh101
I am stuck on the Coding section of the idea maker two silver badge.

Am i being stupid or is there a simple way to complete the first section on how to create a life support function?
Capturehgfdhfgh.PNG
Is this how you do it or am i being really dumb?

I’m stuck on that part too, idk but I don’t think there’s spaces
2020-04-29 (18).png
Click run and then it will say something about initiate() but click run again as there is already the semi-colon on the last line.
(edited 3 years ago)
Original post by Superhh101
I am stuck on the Coding section of the idea maker two silver badge.

Am i being stupid or is there a simple way to complete the first section on how to create a life support function?
Capturehgfdhfgh.PNG
Is this how you do it or am i being really dumb?

you are so close just change the "check life support" on line 3 to "initiate(lifeSupportCheck);"
Original post by RobTheGoblin
you are so close just change the "check life support" on line 3 to "initiate(lifeSupportCheck);"

that doesn't work :frown:
Please can anyone help with this?

var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

lifeSupportCheck();


I need to use the lifeSupportOn() function. You can pass an object into it by placing it inside the brackets. E.g lifeSupportOn(object) but I'm completely stuck what to change!

Many thanks :wink:
(edited 3 years ago)
Original post by Kangroo200
Please can anyone help with this?

var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

lifeSupportCheck();


I need to use the lifeSupportOn() function. You can pass an object into it by placing it inside the brackets. E.g lifeSupportOn(object) but I'm completely stuck what to change!

Many thanks :wink:


do you have a solution?
Reply 7
What do u put inside the brackets after it though?
hi please help i dont get it
(edited 11 months ago)
Reply 9
Original post by Superhh101
I am stuck on the Coding section of the idea maker two silver badge.

Am i being stupid or is there a simple way to complete the first section on how to create a life support function?
Capturehgfdhfgh.PNG
Is this how you do it or am i being really dumb?

I know I’m about 3 years late, but for any new people, this is the code that works:

initiate();
function lifeSupportCheck(){
//initiate(lifeSupportCheck);
}
Reply 10
Original post by JustAJosh
I know I’m about 3 years late, but for any new people, this is the code that works:

initiate();
function lifeSupportCheck(){
//initiate(lifeSupportCheck);
}

same
Reply 11
Original post by JustAJosh
I know I’m about 3 years late, but for any new people, this is the code that works:

initiate();
function lifeSupportCheck(){
//initiate(lifeSupportCheck);
}

Do you have the code for the rest of it at all, I need the badge
Reply 12
Original post by lottie1023
Do you have the code for the rest of it at all, I need the badge

Unfortunately not, I only got that far.
I just skipped the badge and did the rest to get my silver certificate.

Quick Reply

Latest

Trending

Trending