JSFiddle - React, Tailwind, and code Playground
by suhail
JavaScript
var getecg = function(hai, func) {
console.log(hai);
setTimeout(function() {
return func('ecg', func);
}, 1000)
};
var getppg = function(hai, func) {
console.log(hai);
setTimeout(function() {
return func('ppg', func);
}, 1000)
}
getppg('ppg', getppg);
getecg('ecg', getecg);