+ 6

Which is the best method to print in javascript??

25th Aug 2018, 3:08 AM
Nihar Patel
Nihar Patel - avatar
5 Answers
25th Aug 2018, 4:48 AM
Donthack
Donthack - avatar
+ 4
Alternatively you can use console.log()
25th Aug 2018, 4:37 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
+ 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
25th Aug 2018, 4:34 AM
Jonathan Pizarra
Jonathan Pizarra - avatar
+ 1
What you mean????
25th Aug 2018, 3:45 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar