Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
what is "document" in the following code var x=10; document.write(x)
Is document is a class in javascript?
1 Answer
+ 1
document is an object. Classes are more likely to create similar objects (write is. a method of the document object).