JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = [26, 27, 28, 29];
var ab = [41, 42, 43, 44];
var result = [];
for (i=0; i<a.length; i++) {
for (j=0; j<ab.length; j++) {
var b;
b = ab[j]-a[i];
result.push(b);
console.log(result);
}
}