141k views
1 vote
Hello I need help to correct this html code I do not know what is wrong

Hello I need help to correct this html code I do not know what is wrong-example-1
User Punchline
by
3.9k points

1 Answer

5 votes

Answer:

You have made mistake in line 8

Step-by-step explanation:

you have written Document.write to display the weight on mars but, its not a function document.write is the function you should use. The difference between these both is the letter 'd'. You have written the capital d in place of small d. JavaScript is a case sensitive language. That's the reason the output you want to see you can't able to see. If you right click on the web page and click on inspect and go to console you will able to see the error there also. If you have done any mistake anywhere else you ca also see it from the console.

User Nababa
by
4.7k points