10 lines
142 B
JavaScript
10 lines
142 B
JavaScript
|
module.exports = class {
|
||
|
constructor(id, count) {
|
||
|
this.id = id;
|
||
|
this.count = count;
|
||
|
}
|
||
|
|
||
|
updateCount(count) {
|
||
|
this.count += count;
|
||
|
}
|
||
|
}
|