work
This commit is contained in:
parent
1bffa43db4
commit
057783d216
373 changed files with 203 additions and 190 deletions
|
@ -0,0 +1,14 @@
|
|||
let calculator = {
|
||||
sum() {
|
||||
return this.a + this.b;
|
||||
},
|
||||
|
||||
mul() {
|
||||
return this.a * this.b;
|
||||
},
|
||||
|
||||
read() {
|
||||
this.a = +prompt('a?', 0);
|
||||
this.b = +prompt('b?', 0);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue