We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Its not an issue but a query
`// Lecture: Bind, call and apply
var john = { name: 'John', age: 26, job: 'teacher', presentation: function(style, timeOfDay) { if (style === 'formal') { console.log('Good ' + timeOfDay + ', Ladies and gentlemen! I'm ' + this.name + ', I'm a ' + this.job + ' and I'm ' + this.age + ' years old.'); } else if (style === 'friendly') { console.log('Hey! What's up? I'm ' + this.name + ', I'm a ' + this.job + ' and I'm ' + this.age + ' years old. Have a nice ' + timeOfDay + '.'); } } }; var emily = { name: 'Emily', age: 35, job: 'designer' };
var johnFriendly = john.presentation.bind(john,null, ,'morning'); johnFriendly('friendly');`
Is there any way to fix the second parameter ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Its not an issue but a query
`// Lecture: Bind, call and apply
var john = {
name: 'John',
age: 26,
job: 'teacher',
presentation: function(style, timeOfDay) {
if (style === 'formal') {
console.log('Good ' + timeOfDay + ', Ladies and gentlemen! I'm ' + this.name + ', I'm a ' + this.job + ' and I'm ' + this.age + ' years old.');
} else if (style === 'friendly') {
console.log('Hey! What's up? I'm ' + this.name + ', I'm a ' + this.job + ' and I'm ' + this.age + ' years old. Have a nice ' + timeOfDay + '.');
}
}
};
var emily = {
name: 'Emily',
age: 35,
job: 'designer'
};
var johnFriendly = john.presentation.bind(john,null, ,'morning');
johnFriendly('friendly');`
Is there any way to fix the second parameter ?
The text was updated successfully, but these errors were encountered: