The Student Room Group

robotics section (robotAI.js) Help

Stuck on the robotics section (robotAI.js) and need help.
(edited 4 years ago)

Reply 1

You’ve literally got the answer right there in the hints?

Reply 2

What are you stuck on? They tell you the answer right there, as the other poster has mentioned. You have to put the second line within the brackets of the loop, but that's all the thinking you have to do yourself.

Maybe you're unaware of JS syntax (I am too, python, R, Julia and a bit of C for me only!), or maybe this is too advanced for you. Have you done a bare-bones JS tutorial, at all?

Reply 3

Original post
by Anonymouse763493
Stuck on the robotics section (robotAI.js) and need help.

Please don't expect others to do your homework for you. It looks like you haven't even attempted the question!

Reply 4

Hi I am stuck on the same part.
I put this but it wrong and I am not sure what I have done wrong.
Screenshot 2021-06-14 at 22.35.37.png
instead of criticizing you could ACTUALLY help
and hey I'm stuck too :colonhash:
Original post
by Anonymouse763493
Stuck on the robotics section (robotAI.js) and need help.


its
var soundBlocks =[crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}
hope this helps:biggrin: i would appreciate if you liked this comment

Reply 7

Original post
by *°•._ 𝒯Ø𝓍𝒾𝒸_.•°*
its
var soundBlocks =[crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}
hope this helps:biggrin: i would appreciate if you liked this comment


Tysm! Thx to you I got my iDEA Silver Certificate
Original post
by daisyyyyyyy89
Tysm! Thx to you I got my iDEA Silver Certificate

np

Reply 9

Original post
by *°•._ 𝒯Ø𝓍𝒾𝒸_.•°*
instead of criticizing you could ACTUALLY help
and hey I'm stuck too :colonhash:

💪🗿

Reply 10

Original post
by *°•._ 𝒯Ø𝓍𝒾𝒸_.•°*
np

Didn’t work
Original post
by Luacbo25
Didn’t work
oh maybe because you need to put this bracket } when you copy n paste it at the second last sentence and remove the bracket that is alone on the last sentence

Reply 12

Original post
by *°•._ 𝒯Ø𝓍𝒾𝒸_.•°*
its
var soundBlocks =[crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}
hope this helps:biggrin: i would appreciate if you liked this comment

This code wont work, any ideas? no pun

Reply 13

Original post
by DillonMcLellan
This code wont work, any ideas? no pun

Why would it be a pun??

Reply 14

Original post
by *°•._ 𝒯Ø𝓍𝒾𝒸_.•°*
oh maybe because you need to put this bracket } when you copy n paste it at the second last sentence and remove the bracket that is alone on the last sentence

I don't get it, it still won't work

Reply 15

Original post
by hackrplayz
Why would it be a pun??

Idea award, and I said any ideas on how to fix, it was very shallow

Reply 16

Original post
by *°•._ 𝒯Ø𝓍𝒾𝒸_.•°*
its
var soundBlocks =[crash,happyBeep,whistle];
for (i=0;i<soundBlocks.length;i++)
{
playSound(soundBlocks);
}
hope this helps:biggrin: i would appreciate if you liked this comment

this for some reason doesn't work for me

Reply 17

Original post
by 134323
this for some reason doesn't work for me

i've doen every thing and still doesn't work

Quick Reply