JSFiddle - React, Tailwind, and code Playground

by josekerekes

JavaScript

var jud = ['B', 'CJ','AB'];
var ind = ['AAA','BAA','CXV','DEX']
var result = [];
function inmatriculare(judete, min, max, ind) {
		for(i=0;i<judete.length;i++) {
    		for(j=min;j<=max;j++){
        	for(x=0;x<ind.length;i++) {
            var temp = judete[i] + j + ind[x];
            result.push(temp)
          }
        }
    }
    return result
}

console.log(inmatriculare(jud, 10, 12, ind))