Basic Math Formulas Geeksforgeeks Javascript Variable Scope