function calcPercent(num, total) { return Math.round(100 * num / total) } function isEven(num) { return num % 2 === 0 }