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

22

u/BloodAndTsundere Dec 16 '18

I actually kind of like this because I always manage a typo when I type 'console.log'. I get a lot of 'cosnole.log'. I think I'm much more consistent typing 'print'.

26

u/Earhacker Dec 16 '18

VS Code, Atom and the like usually have a snippet that autocompletes when you just type "log".

2

u/killchain Dec 16 '18

WebStorm has one also, you just append .log to the whole expression.