Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Task {
- constructor(id, desc, due, prio) {
- this.id = id;
- this.desc = desc;
- this.due = due;
- this.prio = prio;
- }
- print() {
- return "Id: " + this.id + " Desc: " + this.desc + " Due: " + this.due + " Prio: " + this.prio;
- }
- }
- t = new Task(0, 'mein Task', '2018.01.01', 1);
- console.log(t.print());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement