0
is document.write method used only for strings?
document.write
4 Réponses
+ 4
It's used for writing to the html document. Try numbers, objects(+ their methods) and let me know the result.
+ 2
If you mean the parameter the answer is no. Yo u can "write" anything.
//Example:
document.write(Date());
If you mean when is used the method, it is used for testing only. When you call document.write() the HTML content is replaced.
+ 1
thank you for your best answers
0
I appreciate best explanations