en.javascript.info/1-js/06-advanced-functions/10-bind/4-function-property-after-bind/task.md
paroche 7886e24b0f
Update task.md
Wording / punctuation change.
2019-09-13 20:58:31 -06:00

23 lines
329 B
Markdown

importance: 5
---
# Function property after bind
There's a value in the property of a function. Will it change after `bind`? Why, or why not?
```js run
function sayHi() {
alert( this.name );
}
sayHi.test = 5;
*!*
let bound = sayHi.bind({
name: "John"
});
alert( bound.test ); // what will be the output? why?
*/!*
```