Posts by João Pereira Rosa • 4 points
1 post
-
-6
votes3
answers171
viewsA: Why does it return "Undefined" because it has an "if/Else"?
Quite simply the code is not reading the condition else. The code is not returning any results within the condition if, so when the function has just been executed the returned value is undefined,…