MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / constructor

Method constructor

assets/js/note-app.js:8–12  ·  view source on GitHub ↗
(title,text,favorite = false)

Source from the content-addressed store, hash-verified

6
7class Note{
8 constructor(title,text,favorite = false){
9 this.title = title;
10 this.text = text;
11 this.favorite = favorite;
12 }
13}
14
15let addBtn = document.getElementById('addBtn');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected