const fn = () => {
console.log('Arrow function')
}
// Same as the arrow function from above
function fn() {
console.log('Normal function')
}
function double(x) { return x * 2; } // Traditional way
console.log(double(2)) // 4
const double = x => x * 2; // Same function written as an arrow function with implicit return
console.log(double(2)) // 4
const add3 = (num1, num2, num3) => return num1 + num2 + num3;
const square = num => num ** 2;
const sayHi = ()=>console.log('Hi');