pluralsight-js-functions/app.js

7 lines
275 B
JavaScript
Raw Normal View History

2021-05-12 13:48:15 +10:00
function introduction(name, profession) {
console.log('My name is ' + name + ' and I am a ' + profession + '.');
console.log(this);
}
introduction('John', 'student');
introduction.apply(undefined, ['Mary', 'Lawyer']);
introduction.call(undefined, 'James', 'artiest');