DEV Community

Discussion on: What’s your favorite JS interview question?

misterwhat profile image
Jonas Winzen

You can't bind anything to an arrow functions this. But you can bind arguments to them. ie:

((arg) => console.log(arg)).bind(null, "done")()

would work.

Thread Thread
themindfuldev profile image
Tiago Romero Garcia

Oh nice! Thanks for explaining that.