JavaScript Hoisting Explained

Day 9 of 100 🔥 We called greet() and used num BEFORE declaring them. One works perfectly. One gives a surprise. 😱 Comment down 👇 No googling! Hint: JavaScript secretly moves some things to the top of the code before running it. But it doesn't move everything the same way! 👀 This concept is called HOISTING — and it's one of the most asked JS interview questions ever! Full explanation tonight in the comments! #100DaysOfCode #JavaScript #CodingInterview #JavaScriptTips #WebDevelopment

  • text

To view or add a comment, sign in

Explore content categories