Xem them: https://es6console.com/
function Cat(name, age=1) { this.name = name; this.age = age; } Cat.prototype.speac = function() { console.log("aaaaaaa"); } const cat = new Cat("Boris",2);
Result
https://www.youtube.com/watch?v=JNxb9WB-3y4
Last updated 2 years ago
Navigation
@Copyright 2023