1
0
CompleteNodeJS/playground/7-default-params.js

8 lines
104 B
JavaScript
Raw Permalink Normal View History

const greeter = (name = 'user', age) => {
console.log('Hello ' + name)
}
greeter('Jason')
greeter()