Compare commits
4 Commits
6a0a672e35
...
master
Author | SHA1 | Date |
---|---|---|
jason.zhu | 2a5ef56d42 | |
jason.zhu | d822050bdc | |
Jason Zhu | 368314fcdd | |
jason.zhu | 2ad7483250 |
11
app.js
11
app.js
|
@ -1,7 +1,6 @@
|
|||
function introduction(name, profession) {
|
||||
console.log('My name is ' + name + ' and I am a ' + profession + '.');
|
||||
console.log(this);
|
||||
function display(char1, char2, char3, char4, ...others) {
|
||||
console.log(others);
|
||||
console.log(char1, char2, char3, char4);
|
||||
}
|
||||
introduction('John', 'student');
|
||||
introduction.apply(undefined, ['Mary', 'Lawyer']);
|
||||
introduction.call(undefined, 'James', 'artiest');
|
||||
let letters = 'abcdefgh';
|
||||
display(...letters);
|
Loading…
Reference in New Issue