This is a function reference, not a function invocation! so the condition is always true.
At line 140 you set the constant ensureValues to be a function reference (a truthy value).
You need to invoke the method here, so that it gets evaluated...
if (ensureValues()) {
...
codeacademyJSAPI/project-1-rock-paper-scissors-x99/project-1-rock-paper-scissors-x99/js/game-logic.js
Line 159 in ae1b1fd
This is a function reference, not a function invocation! so the condition is always
true.At line 140 you set the constant
ensureValuesto be a function reference (a truthy value).You need to invoke the method here, so that it gets evaluated...