JSFiddle - React, Tailwind, and code Playground

by A A

JavaScript

/* const foo = () => bar => bar("hw")

const bar = (text) => console.log(text)

const foo = function() {
  return bar 
}

bar("text")

foo()
 */
const foo = () => bar => bar("hello world");
foo()(console.log)