DEV Community

Discussion on: Daily Challenge #30 - What is the price?

Collapse
 
juanrodriguezarc profile image
Juan Rodríguez
DiscoverOriginalPrice = (price, disc) => Math.round(price/((100 - disc)/100) * 100) / 100