Basic Math Formulas Geeksforgeeks Javascript