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.
JavaScript only hoists declarations, not initializations.
Loading
Virtual. Every session is recorded and published here on CSharp TV.
Write an article and earn +100 points when it is approved.
Write an articleIn JavaScript, a variable can be declared after it has been used.
In other words; a variable can be used before it has been declared.
JavaScript only hoists declarations, not initializations.