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.

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


js code

Hi @dheerajswaroop15,

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

Thank You. Your Answer helps me too.