// Default parameters let you assign a default value to a parameter when you define a function. For example:
function greeting(name, message = ”Hello”){
console. log(`${messgae} ${name}`)
}
greeting(‘John’); //output: Hello John
//you can also assign a new value to the default parameter
//when you call the function
greeting(‘Doe’, ‘Hi’); //output: Hi Doe