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