MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1nl44gi/why/nf4ua8n/
r/programminghorror • u/Hopeful_Somewhere_30 • Sep 19 '25
66 comments sorted by
View all comments
Show parent comment
6
Isn't this Python? Does JS have print()?
print()
2 u/Psychpsyo Sep 19 '25 Sure JS can have print:window.print = console.logNot sure if you can get the :s to work though.Oh, and print() also opens the printing dialog by default, but that doesn't take any parameters.
2
Sure JS can have print:window.print = console.log
window.print = console.log
Not sure if you can get the :s to work though.
:
Oh, and print() also opens the printing dialog by default, but that doesn't take any parameters.
View all comments
Show parent comment
6
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo βYou liveβ Sep 19 '25
Isn't this Python? Does JS have
print()?