Variable of function always returns undefined
Advertisements The idea: I want to return a variable from a function and then output it using console.log(). The problem: I can’t just use return result because then nothing is returned. I don`t really know how else to return the variable. I have already looked at SO posts like this one, however I probably lack… Read More Variable of function always returns undefined