Shruti Singhshrutisinghz.hashnode.dev·Feb 2, 2024What is Hoisting in JavaScript?So as we know JavaScript is synchronous by default i.e. JS run line by line. For example, observe the code below and tell the output. function sum(a , b){ return a + b; } console.log(sum(5 , 5)) //Output => 10 How about we declare a variable at l...Discussjavascript hoisting
Manas Upadhyaymanasupadhyay.hashnode.dev·Nov 26, 2023Hoisting in JS | Global Execution ContextIntroduction Hoisting in js, this is one of the most common questions in js interviews. So in this article, we are going to deep dive into what is hoisting. But first, can you tell me the output of this code: I guess most of you would have been able...Discuss·10 likes·41 readsJavaScriptHoisting
Mehak Baharmehakbahar.hashnode.dev·Nov 11, 2023Truths About JavaScript Only EXPERTS KnowA wonderful attribute of JavaScript that I recently came across throughout my learning journey is the ability to call a function in JavaScript code even before it has been declared. But how is this possible? the very concept of "HOISTING"! WHAT IS HO...DiscussHoisting
Kennedy Omataomatakennedy21.hashnode.dev·May 24, 2023Demystifying Variable Declaration in JavaScript:When working with JavaScript, understanding the various ways of declaring variables is crucial for effective programming. In this article, we will explore the different methods of declaring variables in JavaScript, including the var, let, and const k...Discuss·1 like·90 readsJavaScript