I have heard a lot of interviews ask this question on Hoisting in JavaScript. What is this hoisting in JavaScript? Is it the same as hosting? It would be kind if someone could help me with their knowledge.
jayashree10 15 Newbie Poster
Recommended Answers
Jump to PostIt has to do with the scope of a javascript variable. It means that the variable is hoisted (aka “lifted up”) to the top of the code block it’s in.
This has nothing to do with web hosting, and is only relevant if you are a javascript developer.
All 3 Replies
Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member
jayashree10 commented: Thank you for answering. 😇🌈i understood +0
Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member
AndreRet 526 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.