Skip to content

Commit 2ff410b

Browse files
committed
update assignment LaunchCodeEducation#3
1 parent 1fe6520 commit 2ff410b

6 files changed

Lines changed: 6495 additions & 14 deletions

File tree

message.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
// Bring in command.js code
2+
const Command = require('./command.js');
3+
4+
15
class Message {
2-
// Write code here!
6+
constructor(name, commands = []) {
7+
this.name = name;
8+
if (!name) {
9+
throw Error("name required.");
10+
}
11+
this.commands = commands;
12+
13+
}
14+
315
}
416

5-
module.exports = Message;
17+
module.exports = Message;
18+

0 commit comments

Comments
 (0)