Skip to content

Commit ee4cd04

Browse files
committed
14.3. bind
1 parent 37b0622 commit ee4cd04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎object_function.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ function sum(prefix){
66
// sum();
77
console.log("sum.call(kim)", sum.call(kim, '=> ')); //apply
88
console.log("lee.call(kim)", sum.call(lee, ': '));
9+
var kimSum = sum.bind(kim, '-> ');
10+
console.log('kimSum()', kimSum());

0 commit comments

Comments
 (0)