Get Programming with JavaScript - Listing 6.11
Listing 6.11 - Returning a value from a function
const getMessage = () => "I’m going on an adventure!";
const response = getMessage();
console.log(response);
const getMessage = () => "I’m going on an adventure!";
const response = getMessage();
console.log(response);