Help please write the code on js, which is looking for the number of numbers from 1 to 1000 in which there is a number 3. It is desirable with the help of the remainder of the division. I tried to solve this, but I do not see numbers of type 931.
let count = 0; for(var i = 1; i<=1000;i++) { if (i%10==3 || i%100===30 || i%1000===300 || ~~((i/1000)*10)/10==0.3 || ~~((i/100)*10)/10==0.3){ count++; document.write(i+"<br/>")} } alert(count)