Skip to content

Commit db3b8c2

Browse files
committed
Upload Assignment Three tasks LaunchCodeEducation#1-3 solution code.
1 parent 1fe6520 commit db3b8c2

7 files changed

Lines changed: 3688 additions & 4 deletions

File tree

command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ class Command {
99

1010
}
1111

12-
module.exports = Command;
12+
module.exports = Command;

message.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
class Message {
22
// Write code here!
3+
constructor(name, commands) {
4+
this.name = name;
5+
if (!name) {
6+
throw Error("Message name required.");
7+
}
8+
this.commands = commands;
9+
}
310
}
411

5-
module.exports = Message;
12+
module.exports = Message;

0 commit comments

Comments
 (0)