Compare commits
8 Commits
module1_wr
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
2a5ef56d42 | ||
|
d822050bdc | ||
368314fcdd | |||
|
2ad7483250 | ||
|
6a0a672e35 | ||
|
0c245858e6 | ||
|
e6874571ca | ||
|
a3c7a49770 |
16
app.js
16
app.js
@ -1,12 +1,6 @@
|
||||
function setupCounter(val) {
|
||||
return function counter() {
|
||||
return val++;
|
||||
}
|
||||
function display(char1, char2, char3, char4, ...others) {
|
||||
console.log(others);
|
||||
console.log(char1, char2, char3, char4);
|
||||
}
|
||||
|
||||
let counter1 = setupCounter(0);
|
||||
console.log(counter1());
|
||||
console.log(counter1());
|
||||
let counter2 = setupCounter(10);
|
||||
console.log(counter2());
|
||||
console.log(counter2());
|
||||
let letters = 'abcdefgh';
|
||||
display(...letters);
|
Loading…
x
Reference in New Issue
Block a user