I have the following function
const prueba= () =>{
let equis = console.log("Hola")
}
console.log(prueba());
The function returns "Hello undefined" I understand that the undefined is because I am calling the function prueba
and not return anything explicit, but the Hola
? I don't understand why I'm returning something from a variable that I'm not even calling or using.