Help with calling a function - IDEA Silver award Watch

Matteopo16
Badges: 2
Rep:
?
#1
Report Thread starter 1 year ago
#1
Hello. I'm trying to complete the IDEA Silver award and I'm stuck on the Maker Activation part 2 section. I can't wrap my head around how to "call a function". This is the code I have:

initiate();
function lifeSupportCheck() {

}

The website tells me to "call the lifeSupportCheck() function". Can anyone help me?
0
reply
SammieWilliams
Badges: 3
Rep:
?
#2
Report 1 year ago
#2
I just did this badge and am now stuck on the next bit!

You simply add underneath:

initiate(lifeSupportCheck);
Last edited by SammieWilliams; 1 year ago
0
reply
Matteopo16
Badges: 2
Rep:
?
#3
Report Thread starter 1 year ago
#3
Ughh thanks this is so hard.. I managed to complete the silver award by finishing everything else though. Give it a try; in the end I didnt even have to complete maker part 2: I still got to 400 points
0
reply
SammieWilliams
Badges: 3
Rep:
?
#4
Report 1 year ago
#4
Luckyyyy. I would happily complete everything else, but for some reason there's 4 buttons that aren't working at the end of the 3rd Worker badge...

When you get to the bit where you have to filter your emails down and then complete the last jobs in your inbox, the filter buttons won't work, I can't click on them, they do nothing. Else I'd have fifty points and no headache! I've emailed them about it.

Did it on Chrome, not sure if it's the site or me that's stopping it from working.
0
reply
Matteopo16
Badges: 2
Rep:
?
#5
Report Thread starter 1 year ago
#5
I did it on Safari from my Macbook... it worked. If you think its chrome and you’re using a windows pc then you probably have microsoft edge with windows 10. Try it on that.
0
reply
HorusOG
Badges: 5
Rep:
?
#6
Report 1 year ago
#6
Right, you do this;

initiate()
function lifeSupportCheck(){

}
lifeSupportCheck()
5
reply
Umar.2004
Badges: 2
Rep:
?
#7
Report 1 year ago
#7
Thnx for this
0
reply
Isoji
Badges: 3
Rep:
?
#8
Report 1 year ago
#8
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

}
}

lifeSupportCheck()

Can someone please help me with this
Last edited by Isoji; 1 year ago
0
reply
Isoji
Badges: 3
Rep:
?
#9
Report 1 year ago
#9
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

}
}

lifeSupportCheck()

Hey I was wondering if you happened to understand how to do this, if yes can you pls explain how to do it. Thank you
0
reply
slimefrog
Badges: 1
Rep:
?
#10
Report 1 year ago
#10
Hi, not to give too much away, but if you restart the section and read every detail of the information it actually gives you the answer
0
reply
Isoji
Badges: 3
Rep:
?
#11
Report 1 year ago
#11
I have restarted the section up ten times and I still don't get it. Ive have been trying for up to a week or two.
0
reply
Pro_Ice360
Badges: 1
Rep:
?
#12
Report 11 months ago
#12
Sorry if I'm too late but you do:var rooms = [bridge,lab,canteen,cabin,storage]initiate();function lifeSupportCheck() {for (i=0;i<rooms.length;i ) {rooms[i]}}lifeSupportCheck();
0
reply
Dom123321
Badges: 3
Rep:
?
#13
Report 10 months ago
#13
var rooms = [bridge,lab,canteen,cabin,storage]initiate();function lifeSupportCheck() {for (i=0;i<rooms.length;i ) {}}lifeSupportCheck();can someone help me with this
0
reply
Dom123321
Badges: 3
Rep:
?
#14
Report 10 months ago
#14
var rooms = [bridge,lab,canteen,cabin,storage]

initiate();

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

}
}

lifeSupportCheck();
1
reply
Jacob Zorba
Badges: 1
Rep:
?
#15
Report 9 months ago
#15
I've been trying to complete this iDEA quest but i can't complete it, PLS help!
PLS help it doesn't work for me, i tried a lot of different ways but it doesn't work i've been doing this for days but it is not working :

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

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

}
}
lifeSupportCheck();
Last edited by Jacob Zorba; 9 months ago
0
reply
SophDutton
Badges: 4
Rep:
?
#16
Report 8 months ago
#16
var rooms = [bridge,lab,canteen,cabin,storage]initiate();function lifeSupportCheck() {for (i=0;i<rooms.length;i ) {rooms[i];}}lifeSupportCheck();Please can someone help me with the above? It wants me to run the object through the lifeSupportOn() function.
2
reply
wgjc3107
Badges: 1
Rep:
?
#17
Report 8 months ago
#17
I need help with the third section of this, I looped through soundBlocks, called playSound and passed the correct sound, but it still doesn't work. Here is my code:for (i=0;i<movementBlocks.length;i ) {doMovement(movementBlocks[i])}var soundBlocks = [crash,happyBeep,whistle];for (i=0;i<soundBlocks.length;i ) {playSound(SoundBlocks[i])}
0
reply
amurleopard123
Badges: 3
Rep:
?
#18
Report 8 months ago
#18
do you need to do the + after the i in the loop?
Last edited by amurleopard123; 8 months ago
0
reply
amurleopard123
Badges: 3
Rep:
?
#19
Report 8 months ago
#19
OK I JUST GOT IT. The code is basically the movement one but repeated so it looks like this
for (i=0;i<movementBlocks.length;i++ ){
do movement(movementBlocks[i])
}
var soundBlocks = [crash, happyBeep, whistle];
for (i=0;i<soundBlocks.length;i++){
playSound(soundBlocks[i])
}


I think that's what it did, its basically the first loop but with the sound blocks function subbed in instead. If you need help, then look at the hints, copy out those commands then lay them out in the same format as the part you're given


(Original post by amurleopard123)
do you need to do the + after the i in the loop?
0
reply
amurleopard123
Badges: 3
Rep:
?
#20
Report 8 months ago
#20
OK I JUST GOT IT. The code is basically the movement one but repeated so it looks like this
for (i=0;i<movementBlocks.length;i++ ){
do movement(movementBlocks[i])
}
var soundBlocks = [crash, happyBeep, whistle];
for (i=0;i<soundBlocks.length;i++){
playSound(soundBlocks[i])
}


I think that's what it did, its basically the first loop but with the sound blocks function subbed in instead. If you need help, then look at the hints, copy out those commands then lay them out in the same format as the part you're given



(Original post by wgjc3107)
I need help with the third section of this, I looped through soundBlocks, called playSound and passed the correct sound, but it still doesn't work. Here is my code:for (i=0;i<movementBlocks.length;i ) {doMovement(movementBlocks[i])}var soundBlocks = [crash,happyBeep,whistle];for (i=0;i<soundBlocks.length;i ) {playSound(SoundBlocks[i])}
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

University open days

  • The University of Law
    Solicitor Series: Assessing Trainee Skills – LPC, GDL and MA Law - Exeter campus Postgraduate
    Thu, 27 Feb '20
  • University of East Anglia
    PGCE Open day Postgraduate
    Sat, 29 Feb '20
  • Edinburgh Napier University
    Postgraduate Drop-in Brunch Postgraduate
    Sat, 29 Feb '20

Do you get study leave?

Yes- I like it (275)
60.98%
Yes- I don't like it (22)
4.88%
No- I want it (120)
26.61%
No- I don't want it (34)
7.54%

Watched Threads

View All