¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

JavaScript

Ryan Souva 108 preguntas

Hacer el test

Preguntas del test (108)

  1. 1Inside which HTML element do we put the JavaScript?
    1. A<javascript>
    2. B<scripting>
    3. C<js>
    4. D<script>
  2. 2What is the correct syntax for referring to an external script called "xxx.js"?
    1. A<script src="xxx.js">
    2. B<script href="xxx.js">
    3. C<script name="xxx.js">
  3. 3The external JavaScript file must contain the <script> tag.
    1. ATrue
    2. BFalse
  4. 4How do you write "Hello World" in an alert box?
    1. AalertBox("Hello World");
    2. BmsgBox("Hello World");
    3. Calert("Hello World");
    4. Dmsg("Hello World");
  5. 5How do you create a function in JavaScript?
    1. Afunction = myFunction()
    2. Bfunction myFunction()
    3. Cfunction:myFunction()
  6. 6How do you call a function named "myFunction"?
    1. AmyFunction()
    2. Bcall myFunction()
    3. Ccall function myFunction()
  7. 7How to write an IF statement in JavaScript?
    1. Aif i = 5 then
    2. Bif i = 5
    3. Cif (i == 5)
    4. Dif i == 5 then
  8. 8How to write an IF statement for executing some code if "i" is NOT equal to 5?
    1. Aif i =! 5 then
    2. Bif (i != 5)
    3. Cif (i <> 5)
    4. Dif i <> 5
  9. 9How does a FOR loop start?
    1. Afor (i = 0; i <= 5; i++)
    2. Bfor (i <= 5; i++)
    3. Cfor (i = 0; i <= 5)
    4. Dfor i = 1 to 5
  10. 10What is the correct way to write a JavaScript array?
    1. Avar colors = "red", "green", "blue"
    2. Bvar colors = (1:"red", 2:"green", 3:"blue")
    3. Cvar colors = ["red", "green", "blue"]
    4. Dvar colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")

Información

Descripción
Test sobre JavaScript, creado por Ryan Souva el 27/09/2017.
Idioma
English
Visitas
0
Etiquetas
n/a
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?