function divBy8(num){ let number = num.toString(); number = Number(number.substr(number.length - 3, number.length)); if(number%8 === 0) return true; return false; } console.log(divBy8(363588395960667043875487));
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter