可选参数值

函数

function SayGoodby(message = "Goodby!") {
    console.log(message)
}

SayGoodby()
//输出 "Goodby!"

SayGoodby("see you")
//输出 "see you"