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?

Scroll to see replies

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 4 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 4 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?
What do u put inside the brackets after it though?
hi please help i dont get it
(edited 1 year 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?

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

initiate();
function lifeSupportCheck(){
//initiate(lifeSupportCheck);
}
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
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
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.
Reply 13
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:

Sorry I'm three years late too but i just pressed run code and didn't touch anything and it worked.
help
Original post by huzzy12345
Sorry I'm three years late too but i just pressed run code and didn't touch anything and it worked.
do you know what the code was?
Reply 16
Original post by huzzy12345
Sorry I'm three years late too but i just pressed run code and didn't touch anything and it worked.

doesn’t work
Original post by lottie1023
Do you have the code for the rest of it at all, I need the badge

same
How do i do this bit???
initiate();
function lifeSupportCheck(){
//initiate(lifeSupportCheck);
}
Reply 19
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:

did you end up getting the answer? i'm stuck on this part too

Quick Reply