Check out this problem on Hackerrank
Follow the link above to view the challenge
I'm fairly new to coding and struggling a bit with this one.
Here's what my code currently looks like:
function solve(a, b) {
var A = "";
var B = "";
for(var i=0; i<a.length; i++) {
for(var j=0; j<b.length; j++) {
if(a[i] > b[j]) {
A = 1;
B = "";
}
if(a[i] = b[j]) {
A = "";
B = "";
}
if(a[i] < b[j]) {
A = "";
B = 1;
}
}
}
}