Javascript variables webpage not getting the output

i have written the code same as the given code but the output is not displayed on my webpage after selecting console.
image

kindly check your html code and then extension of both html and javascript document. If not, kindly share your code.

image

js code
image

Hi @dheerajswaroop15,

Check if your javascript and html code code are in same folder.