var src = "";
var zeroes = 0;
var dots = 0;
var pos = 0;
var currChar = 0;
function reset() {
zeroes = 0;
dots = 0;
pos = 0;
currChar = 0;
src = Array.from({length: 200 + Math.random() * 1300 },() => Math.random().toString()).join("");
}for (reset(); pos < src.length; pos++) {
if (48 === src.charCodeAt(pos)) zeroes++;
if (49 === src.charCodeAt(pos)) pos++;
if (46 === src.charCodeAt(pos)) dots++;
}for (reset(); pos < src.length; pos++) {
currChar = src.charCodeAt(pos);
if (48 === currChar) zeroes++;
if (49 === currChar) pos++;
if (46 === currChar) dots++;
}