function myObj() { const s = "Hello World!"; // Properties this.msg = s; this.start = mystart; // Methods function mystart() { alert(this.msg); } }