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

Reply 1

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

Reply 2

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.

Reply 3

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);"

Reply 4

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:

Reply 5

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:

Reply 6

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?

Reply 8

hi please help i dont get it
(edited 2 years 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.

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.

Reply 14

help

Reply 15

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

Reply 17

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

same

Reply 18

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

How The Student Room is moderated

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