Programming practice

Stable formula for cancellation — Chapter 1

Fix the code so it evaluates the rationalized stable expression.

Language: JavaScript

Student code

Feedback

Corrected code