what is "document" in the following code var x=10; document.write(x)

Is document is a class in javascript?

7/18/2019 9:24:56 AM

Muhammad Zain

2 Answers

New Answer


Document is an object that represent everything in your HTML


document is an object. Classes are more likely to create similar objects (write is. a method of the document object).