I am reading SICP in JS about a non-terminating example of ternary conditions: It explains that: This would make the function not just inefficient, but actually non-terminating! The problem is that the constant declaration appears outside the conditional expression, which means that it is executed even when t…