Hello, how can I check if the variable is 10, 20, 30 and so on. or 100, 200, 300 and so on. Simply put, how to check for the presence of zero and two zeros at the end of a number?
var x; function(){ x++; if (x>9 && /*проверка на ноль в конце*/ || x>99 && /*проверка на два нуля в конце*/) { alert(x); } }