MCQs>IT & Programming>JavaScript>Which statement about hoisted declarations in Javascript is true? If a value is assigned to a variable during the declaration (example: var x = 10;) then ...
JavaScript MCQs
Which of the following statements about hoisted declarations in Javascript is true? If a value is assigned to a variable during the declaration (example: var x = 10;) then ...
Answer
Correct Answer: the declaration will be moved to the top of the current scope, but the value assignment will be not.
Explanation:
Note: This Question is unanswered, help us to find answer for this one