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