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
Thank You. Your Answer helps me too.