let bien1 = 10; let object1 = { bien1: 2, inra: function(){ console.log(this.bien1); } } object1.inra(); //2 let copy = object1.inra; / copy(); //10 // tương tự die() trong php throw new Error("die()");
Nguồn JS Land
trung tâm giáo dục thường xuyên javascript: youtube.com/hoccoban
Leave a Reply