I have the below code
function run(){
one();
two();
three();
}
function one(){
console.log(1);
}
function two(){
setTimeout(function(){
console.log(2);
});
}
function three(){
console.log(3);
}
run();
The Output of the following code will be 1,3,2
What are the changes we have to do in a code so that output will be 1,2,3 ?