David• 120
@ASVN2
Posted
It's look great you can fix the float number after " , " some time the result could be more then 2 number after " , " you can fix it with add toFixed( )
line 41 = tipAmount.innerText = ${(amount).toFixed(2)}
line 42 = totalAmount.innerText = ${(amount / data.people).toFixed(2)}
Marked as helpful
1
Ali Ahmed• 680
@Dany-GitHub
Posted
@ASVN2 I forget about it, Thank You! ❤
1