Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

return a boolean if a number is divisible by 10 javascript

const booleanNum = (num) => {
    return num % 10 === 0 ? true : false
}

console.log(booleanNum(20)) // ruturn true
 
PREVIOUS NEXT
Tagged: #return #boolean #number #divisible #javascript
ADD COMMENT
Topic
Name
6+8 =