Using the syntax of es6, how to assign a function to a property of a custom data type?

define a function first

function say(){
    alert("Hi!");
}

define another custom data type

class Dog{
    constructor(name){
        this.name = name;
    }
    //saysay
    say  ???
}
May.22,2021

function say(){
    alert('Hi!');
}
class Dog{
    constructor(name){
        this.name = name;
    }
    
  say(){
    return say.prototype.constructor;
    }
}
new Dog().say()();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2b318-3bdf7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2b318-3bdf7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?