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

Test

Closures

Rimika Chaudhury 5 preguntas

Hacer el test

Preguntas del test (5)

  1. 1What are closures?
    1. AClosures are functions
    2. BClosures are easier said than done
    3. CClosure is an abstract and elusive concept
    4. DClosure is what you get on new year's eve
    5. EClosure is putting things in a box and packing it up
  2. 2the output of the code in case of closures:

    var me = 'Bruce Wayne'
    function greetMe() {
    console.log('Hello, ' + me + '!')}

    greetMe()
    1. AHello, me!
    2. BHello, Bruce Wayne!
    3. CHello, Batman!
    4. DHello, Dark Knight!
    5. EFatal Error
  3. 3The output of the code in case of non-closures:
    var me = 'Bruce Wayne'
    function greetMe() {
    console.log('Hello, ' + me + '!')}

    greetMe()
    1. AHello, Batman!
    2. BHello, Jarvis!
    3. CHello, undefined!
    4. DHello, Joker!
    5. Efunction greetMe() {
      console.log('Hello, ' + me + '!')}
      }
  4. 4The output of the code in JS:
    var me = 'Bruce Wayne'
    function greetMe() {
    console.log('Hello, ' + me + '!')}
    me = 'Batman'

    greetMe()
    1. Aundefined
    2. BHello, Batman!
    3. CHello, undefined!
    4. DHello, NULL!
    5. EHello, Bruce Wayne!
  5. 5A language without the support of closures would need one of these:
    1. Adestructuring
    2. Bdata object or a request object
    3. Cpolite words
    4. Da data structure like arguments
    5. Elinked lists

Información

Descripción
Test sobre Closures, creado por Rimika Chaudhury el 18/06/2018.
Idioma
English
Visitas
0
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?