1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Veseljchak [2.6K]
3 years ago
8

Can anyone fix this code for me?

Computers and Technology
1 answer:
nignag [31]3 years ago
3 0

Answer:

function start(){

move();

for(var i = 0; i < 2; i++){

move();

move();

jumpHurdle();

if(frontIsClear()){

move();

}

}

move();

move();

move();

function jumpHurdle(){

turnLeft();

move();

turnRight();

move();

turnRight();

move();

You might be interested in
The function ________ comprises one or more statements that are executed when the function is called.
spin [16.1K]

Answer:

Option B(Body) is the correct answer for the above question.

Explanation:

The function is a defined processor of some specific task, which is used to perform some action of the task. The function is of two types one is predefined, which is defined by the compiler and, the other is user-defined, which is defined by the programmer. Any user-defined function has three parts--

  • Function prototype: It states the type of function.
  • Function body: It holds the collection of instruction that needs to perform by the function.
  • Function call: From where the function is called.

The above question asked about the term, which holds the statement of the function and that term is function Body, which is defined above. So the answer body, which is stated from the option 'B'. Hence 'B', is the correct option while the other is not because--

  • Option 'A' states about the header, which is not the part of the function
  • Option 'C' states about data type, which defines the types of data.
  • Option 'D' states none of these, but the answer is option B.
  • Option 'E' states about the definition, which is not the correct answer.
5 0
3 years ago
Which aspect of nature inspired the invention of Velcro
lesya692 [45]

Burrs from plants (APEX)

8 0
4 years ago
How many voltage values can be represented with a 10-bit binary code?
viktelen [127]
Answer is D. 1024
8 bits is enough to represent 256 different numbers. 9 bits is enough to represent 512 numbers. 10 bits can represent 1024 numbers.
8 0
3 years ago
Relational operators allow you to ________ numbers
Sonja [21]

Relational operators allow an end user to <u>compare</u> numbers.

<h3>What are relational operators?</h3>

Relational operators can be defined as a programming language construct which allows an end user to compare both numbers and char values.

Also, it can be used to determine whether one number is less than (<), greater than (>), equal to (=), or not equal to another.

This ultimately implies that, relational operators allow an end user to <u>compare</u> numbers.

Read more on relational operators here: brainly.com/question/14995818

#SPJ1

6 0
2 years ago
With what software tool can you see the applications
Zigmanuir [339]

Answer:

The Microsoft Windows Task Manager.

6 0
3 years ago
Other questions:
  • 12.
    9·1 answer
  • An insulated rigid tank is divided into two equal parts by a partition. Initially, one part contains 4 kg of an ideal gas at 850
    8·1 answer
  • Those persons with little in the way of hacking skills that can access and use powerful hacking tools are called _______________
    15·1 answer
  • I like potatoes do you like potatoes
    15·2 answers
  • I'm using assembly language. This is my assignment. I kinda confused about how to write code for this assignment. Can anyone exp
    11·1 answer
  • Mack has started with his first photographic assignment for a magazine. He has clicked around thirty images and uploaded them on
    10·1 answer
  • 4. When you see ##### in a cell, you should
    14·2 answers
  • What does Falstaff do to protect himself in battle? ​
    15·1 answer
  • Select the correct text in the passage.
    12·1 answer
  • Javascript and java are really just two slightly different names for the same language.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!