r
let res = [];
function regexp() {
for (let i = 18; i <= 65; i++) {
let s = num.match(
${i}
)res.push(s[0])
}
}
regexp()
я бы так сделал) и не учил регулярки)
Size: a a a
r
MK
${i}
)R
КК
const [min, max] = [18, 65];
const rest = max - min;
//input <str>
const minus = max - input;
const is = minus <= rest && minus >= 0;
R
IS
MK
MK
R
R
MK
MK
КК
BB
MK
MK
BB
КК