Simple Recursive Javascript Function Returns Undefined

前端 未结 2 583
梦谈多话
梦谈多话 2021-01-20 23:24

For an assignment I am supposed to write a recursive function that checks any integer for even or odd using N-2. If even returns true else returns false. But it returns undefine

2条回答
提交回复
热议问题