+ 3

Can anyone help me?

Why the output of this code is: error var value = 0; If (value){ return true;} else{ return false;}

18th Aug 2020, 7:58 PM
Arnaud Aploon
Arnaud Aploon - avatar
1 Resposta
+ 3
`return` statement should only be used inside a function's body. Use of `return` statement outside function body will trigger error.
18th Aug 2020, 8:00 PM
Ipang