get percentage of number js code example Example: percentage formula in javascript Click to copyconst result = Math.round((data.expense / data.income) * 100)