Expression functions are anonymous functions. After we create a function without a name and we assign it to a variable. To return a value from the function we should call the variable.

PHOTO EMBED

Fri Sep 16 2022 13:35:27 GMT+0000 (Coordinated Universal Time)

Saved by @sreejithbs

// Function expression
const square = function(n) {
  return n * n
}

console.log(square(2)) // -> 4
content_copyCOPY

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/07_Day_Functions/07_day_functions.md