+ 6
Which is the best method to print in javascript??
5 Answers
+ 10
+ 4
Alternatively you can use console.log()
+ 3
Do you mean outputting a text just like python's print() ?
If so, you can use document.write().
If you are pertaining to printing the contents of a webpage, you can use window.print(). Here's a reference:
https://www.w3schools.com/jsref/met_win_print.asp
+ 1
What you mean????