14 lines321 B
function greet(name) { | |
return `Hello, ${name}!`; | |
} | |
| |
const shout = text => text.toUpperCase() + "!"; | |
const add = (a, b = 1) => a + b; | |
| |
console.log(greet("Lin")); | |
console.log(shout("hi")); | |
console.log(add(2), add(2, 3)); | |
| |
// See the lesson README for what to try next. | |
| |
// Try changing the values above and run it again. |