Challenge: Even or Odd?
This challenge will test your skills in implementing promises in JavaScript.
We'll cover the following...
Problem statement #
In this challenge, you have to implement the function evenOdd
. It takes a number num
as a parameter. You have to make use of the concept of promises to determine whether num
is even or odd. You need to do the following:
-
If
num
...