There is such code:
function turnBot(){ var min = 15; for(var i = 0; i < cardN[0].length; i++){ var data = explode(".", cardN[0][i]); var number = data[0]; var mast = data[1]; console.log('number' + number + 'min:' + min); if(number < min){ min = number; console.log('MIN:' + min); var cardName = number + mast; } } clearCard(cardName); addCardForTable(cardName); enabledTurnPlayer(); } I try to fulfill the if(number < min) condition in the function, but it is not executed:
Screen Code:
Question: why the condition is not satisfied?


parseIntand there will be no problems. - Alex Krass