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

16

u/konaraddio Dec 16 '18

It works

I think you only need the .bind if console.log were to use this in its implementation

15

u/dvlsg Dec 17 '18

It used to need the bind. That was a recent-ish change, IIRC.

2

u/imguralbumbot Dec 17 '18

Hi, I'm a bot for linking direct images of albums with only 1 image

https://i.imgur.com/YMlhou8.png

Source | Why? | Creator | ignoreme | deletthis