mediumJS ES5#53

Function.prototype.bind

Prompt

Given an object with a greet method, use .bind() to create boundGreet — a function that always uses that object as this, even when detached from the object or attached to another one.

Hints

Solution

Your Code

5 min

Tests

Click Run to test your code