I have two data sets that were generated by separate functions and are of different types. These datasets cannot be combined (concatenated, joined, etc.). I want to use both datasets in a third function as shown below. How can I achieve this?
function a() {
var x = Math.ceil((Math.random()*100)+1)
c(x);
}
function b() {
var y = Math.floor((Math.random()*100)+1)
c(y);
}
function c(x,y) {
console.log(x + ' : ' + y);
}
a();
b();