Compare commits
6 Commits
Module2_Im
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
2a5ef56d42 | ||
|
d822050bdc | ||
368314fcdd | |||
|
2ad7483250 | ||
|
6a0a672e35 | ||
|
0c245858e6 |
15
app.js
15
app.js
@ -1,11 +1,6 @@
|
|||||||
let message = {
|
function display(char1, char2, char3, char4, ...others) {
|
||||||
name: 'John',
|
console.log(others);
|
||||||
regularFunction: function() {
|
console.log(char1, char2, char3, char4);
|
||||||
console.log(this)
|
|
||||||
console.log('Hello ' + this.name);
|
|
||||||
},
|
|
||||||
arrowFunction: () => console.log(this)
|
|
||||||
}
|
}
|
||||||
|
let letters = 'abcdefgh';
|
||||||
message.regularFunction();
|
display(...letters);
|
||||||
message.arrowFunction(); //
|
|
Loading…
x
Reference in New Issue
Block a user