GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Closures

Rimika Chaudhury 5 Fragen

Quiz starten

Fragen in diesem Quiz (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

Informationen

Beschreibung
Quiz am Closures, erstellt von Rimika Chaudhury am 18/06/2018.
Sprache
English
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck