Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import notificationToast from "notification-module";
- export class CommentBox {
- // ...
- addComment(author, comment) {
- const comment = new Comment("author, comment");
- this.comments.push(comment);
- notificationToast("It's posted!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement