ways to declare a function in javascript es6 code example Example: es6 functions const add = (n1, n2) => n1 + n2