while loop won't stop even condition evaluates to false – Javascript
let checkOrFold = undefined while(checkOrFold != 'check' && checkOrFold != 'fold'){ let checkOrFold = prompt(`check or fold?`); console.log(checkOrFold != 'check' && checkOrFold != 'fold') } console.log('finish') here even the console is logging false but prompt keeps popping up. What could…