class Greeting { static sayGoodby(message = "Goodby!") { console.log(message) } static sayHello(message = "Hello!") { console.log(message) }}Greeting.sayGoodby()//输出 "Goodby!"Greeting.sayHello("Hi")//输出 "Hi"