JSFiddle - React, Tailwind, and code Playground

by justinwyllie

JavaScript

let runFunc = (fnc) => {
    fnc();
}

let hello = () => {
    alert('hello');
}
    
runFunc(hello)  ;

runFunc( () => alert('bye'));