Lovish Duggallovishduggal.hashnode.dev·Jun 21, 2023Hoisting in JavaScriptGuess what is the output of the program? 1 getName(); 2 console.log(x); 3 var x = 7; 4 function getName() { 5 console.log('Namaste JavaScript'); 6 } Output is: Namaste JavaScript undefined Why do we get the above output? Due to Hoisting. Now, W...18 likes·102 readscore-concepts of javascriptHoistingAdd a thoughtful comment1 commentTop commentsTania Duggal·Jun 21, 2023Jun 21, 2023Good work! ·Reply