MCQs>IT & Programming>JavaScript>Assuming alert displays a string of its argument: var a = 10; function example(){ alert(a); var a = 5; } example(); What will be shown if the preceding code is executed?
JavaScript MCQs
Assuming alert displays a string of its argument: var a = 10; function example(){ alert(a); var a = 5; } example(); What will be shown if the preceding code is executed?
Answer
Correct Answer: undefined
Explanation:
Note: This Question is unanswered, help us to find answer for this one