Code Ramp
Test por , creado hace más de 1 año

Test sobre Functions, creado por Code Ramp el 19/04/2018.

318
0
0
Code Ramp
Creado por Code Ramp hace alrededor de 6 años
Cerrar

Functions

Pregunta 1 de 5

1

Functions help make our programs more modular and let us reuse a block of code as many times as we need.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 2 de 5

1

In the following code we are both defining and then calling a function. What does `a` represent in this example?

function findSum(a, b) {
return a + b;
}

var sum = findSum(5, 8);
console.log(sum);

Selecciona una de las siguientes respuestas posibles:

  • a parameter

  • an argument

  • the returned value

  • the function name

Explicación

Pregunta 3 de 5

1

In the following code we are both defining and then calling a function. What does `8` represent in this example?

function findSum(a, b) {
return a + b;
}

var sum = findSum(5, 8);
console.log(sum);

Selecciona una de las siguientes respuestas posibles:

  • a parameter

  • an argument

  • the returned value

  • the function name

Explicación

Pregunta 4 de 5

1

Selecciona la opción correcta de los menús desplegables para completar el texto.

The ( output, input ) of a function is often called a return value. If no value is explicitly provided the function defaults to returning ( undefined, null ).

Explicación

Pregunta 5 de 5

1

The body of the function is the block of code contained in the curly braces. It may contain any of the following:

Selecciona una o más de las siguientes respuestas posibles:

  • Conditionals

  • Loops

  • Variables

  • Other functions

Explicación