JSFiddle - React, Tailwind, and code Playground

by slace

JavaScript

function foo() {
    console.log('foo');
}

function bar() {
    console.log('bar');
}

( 1 == 1 ? foo : bar)();