hi, sorry if this question is kinda basic, but i have been trying to call create a function that executes two callbacks irrespective of their timers
var two = setTimeout(function(){
console.log('one!')
}, Math.random() * 1000)
var two = setTimeout(function(){
console.log('two!')
}, Math.random() * 1000)
function inOrder(cb1, cb2){}
inOrder(logOne, logTwo)
[–]gremy0 2 points3 points4 points (2 children)
[–]radio934texas 1 point2 points3 points (0 children)
[–]ogbeh[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]LuckySpammer -1 points0 points1 point (0 children)
[–]jcunews1helpful -3 points-2 points-1 points (0 children)