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

Show parent comments

4

u/mrbojingle Dec 17 '18

eww. map ftw! Unless you want to run print, then forEach away!

2

u/Earhacker Dec 17 '18

They’re not exactly interchangeable