JavaScript Object-Oriented JavaScript Practice Project Question Prototype

olu adesina
PRO
olu adesina
Pro Student 4,423 Points

how does the method check if the answer is correct without using an if statement?

in this video how does the isCorrectAnswer function check if he answer is correct without an if statement

1 Answer

olu adesina
PRO
olu adesina
Pro Student 4,423 Points

sorry guys just realised, if isCorrectAnswer === Choice it will return true