0

I am new and learning JavaScript from Udemy

This is my Script code

This is my JavaScript Console

What answer should be according to Udemy Course

Question is age variable is declared globally so the second console.log should be 23 which is outside the function what am i doing wrong ? but the console.log is taking the variable from the function !

0 Answers0