JSFiddle - React, Tailwind, and code Playground

JavaScript

function foo(a, b) {
     console.log(a, b);   
}

function bar() {
  var olenvar = 'read';
  var olenteinevar = 'more';
    
    setTimeout(function() {
         foo(olenvar, olenteinevar);   
    }, 100);
    
};

bar();