variable prints undefined after being changed in arrow function code example Example: es6 functions const add = (n1, n2) => n1 + n2