function getPercent (num, total) { let pct = (num / total * 100).toFixed(2); return `${pct}%` } console.log(getPercent(3, 58))