Today Code challenge
Table of contents
No headings in the article.
Create a function that takes a number as its only argument and returns true if it's less than or equal to zero, otherwise return false. lessThanOrEqualToZero(5) ➞ false
Solution
function lessThanOrEqualToZero(num) { return num <= 0 ? true : false; }