I need to get the first response of "second" function, then the "first" function.
function first(n,callback) {
    setTimeout(function() {
        console.log(n);
    }, 1000);
    callback();
}
function callback() {
    console.log('2');
}
first(5,callback);
 
     
    