Skip to content

Commit

Permalink
Mars Rover Assignment GA LaunchCodeEducation#3
Browse files Browse the repository at this point in the history
  • Loading branch information
rswade84 committed Aug 6, 2024
1 parent 1fe6520 commit 68cf9fa
Show file tree
Hide file tree
Showing 7 changed files with 3,689 additions and 18 deletions.
15 changes: 12 additions & 3 deletions message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
class Message {
// Write code here!
}
// Constructor: Initializes a new Message instance
constructor(name, commands) {

module.exports = Message;
if (!name) {
throw new Error('Message name required.');
}
// Set the name property of the Message instance
this.name = name;
this.commands = commands;
}
}

module.exports = Message;
Loading

0 comments on commit 68cf9fa

Please sign in to comment.