How to solve this if statement in JS


I just started learning javascript but I can’t solve this.

function isEven(num) {
    // WRITE YOUR CODE BETWEEN THIS LINE: ↓ ↓ ↓ ↓ 
   
   
    // AND THIS LINE ↑↑↑↑↑
}

isEven should print "even" when num is even number.
I tried this way in the image

Source: JavaSript – Stack Overflow

November 21, 2021
Category : News
Tags: conditional-statements | function | javascript | variables

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.