@bulljsdev undefined 'll B displayed on console
On calling showLove() & start exec,it creates local var js with undefined val,then call showLove2() & when start exec,it runs console.log() that search for js var val in its scope & when nt found,it goes level up to find js val is undefined
@profulsadangi Its not mandatory as long as we are in development phase and adding break lines between each statement, besides planning not to compress files for production version, as comments, breaklines and all white characters will be removed
@iYash_Soni block React
global React
as var is hoisted once in the global scope, took JavaScript as its first assigned value, and its value changed inside the if block from JavaScript to React