JSFiddle - React, Tailwind, and code Playground
by josekerekes
JavaScript
var result = [];
function inmatriculare(judete, min, max, indicative) {
for(var jud of judete) {
for(var j=min;j<=max;j++){
for(var ind of indicative) {
var temp = jud + j + ind;
result.push(temp)
}
}
}
return result
}
console.log(inmatriculare(['B', 'CJ','AB'], 10, 12, ['AAA','BAA','CXV','DEX']))