Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the meaning of JavaScript Hoisting?

  2. A.

     Moving declarations to bottom

    B.

     Moving declarations to top

    C.

     Hosting variables by itself

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Hoisting is JavaScript’s default behavior of moving declarations to the top. In JavaScript, a variable can be declared after it has been used) In other words; a variable can be used before it has been declared.


Be The First To Comment