Berichten met #javascriptinterviews

#javascriptinterviews

Openbare berichten op X die #javascriptinterviews gebruiken.

Gerelateerde hashtags

  1. Akanksha Choudhary@ch_akanksha
    Hoisting is an extremely common topic for JS interviews. Variables declared using 'var' are hoisted to the top of the function scope. The code below does not throw error coz the interpreter pulls all var decl. to the top. [#javascript #interview questions. Day 6.] See Thread👇
    Downloaden
    1953
  2. Akanksha Choudhary@ch_akanksha
    @ch_akanksha
    To add, Hoisting does not apply to let decl. While parsing, the engine is aware of let decl. that appear later in the block but they can't be referenced b4 the actual decl. So, the ReferenceError. The segment of exec that occurs b4 the decl. is called Temporal Dead Zone(TDZ).
    Downloaden
    109
  3. Meer berichten tonen