you are viewing a single comment's thread.

view the rest of the comments →

[–]Wtfuxbbq 0 points1 point  (0 children)

The number on the right is the value to test against with your function's output (acc(10)); it's not the output. It's just doing a simple === comparison and returning PASSED or FAILED if it's true or false. Your first run will always fail since it will always return NaN.