Coding | Calculations are all wrong

A sample of JavaScript code every beginner easily understand this code



How many people like javascript this is too easy to calculations and logic simple but someone understand easy and some take a time