I see one thing I don"t understand in the article https://www.cnblogs.com/highs. in [declaration and execution order of js functions and variables].
does not understand why the value of alert at line 3 is undefined?.
my idea is that during the precompilation period, js gets the declared var a, which is just a declaration and no assignment.
then the precompilation ends.
then start executing the code from the top to the bottom: execute the first line of var axiom 1, and then execute f () further. When you call the f method: alert (a), isn"t the first line already executed, does an already have a value?
or did I go around some bend that I didn"t come out?
ask for advice