r/javascript • • Dec 16 '18

Coming from Python to JS NSFW

const print = console.log

I found my safe space.

607 Upvotes

156 comments sorted by

View all comments

1

u/spacejack2114 Dec 17 '18

If you use GJS (Gnome/GTK Spidermonkey engine) there is a print global function but no console.*. Unlike Python it also has a printerr function.