define a function first
function say(){
alert("Hi!");
}
define another custom data type
class Dog{
constructor(name){
this.name = name;
}
//saysay
say ???
}
define a function first
function say(){
alert("Hi!");
}
define another custom data type
class Dog{
constructor(name){
this.name = name;
}
//saysay
say ???
}
function say(){
alert('Hi!');
}
class Dog{
constructor(name){
this.name = name;
}
say(){
return say.prototype.constructor;
}
}
new Dog().say()();