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 = {
|
||||
name: 'John',
|
||||
regularFunction: function() {
|
||||
console.log(this)
|
||||
console.log('Hello ' + this.name);
|
||||
},
|
||||
arrowFunction: () => console.log(this)
|
||||
function display(char1, char2, char3, char4, ...others) {
|
||||
console.log(others);
|
||||
console.log(char1, char2, char3, char4);
|
||||
}
|
||||
|
||||
message.regularFunction();
|
||||
message.arrowFunction(); //
|
||||
let letters = 'abcdefgh';
|
||||
display(...letters);
|
Loading…
x
Reference in New Issue
Block a user