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...javascript hoistingAdd a thoughtful commentNo comments yetBe the first to start the conversation.