const add = x => y => x + 1
const inc = add(1)
const modulo = dvr => dvd => dvd % dvr
const replace = regex => repl => str =>
  str.replace(regex, repl)

const isOdd = modulo(2)

const filter = pred => xs => xs.filter(pred)
const map = f => xs => xs.map(f)

const censor = replace(/[aeiou]/ig)('*')

const censorAll = map(censor)

const getAllOdds = filter(isOdd)

console.log("censorAll: ", censorAll(['hello', 'world']))
console.log("getAllOdds: ", getAllOdds([1,2,3,4]))
<!DOCTYPE html>
<html>

  <head>

  </head>

  <body>
    <!-- // make console.log write to the page for better in-browser experience -->
    <script>
      (function () {
        var body = document.querySelector('body');
        body.style['fontFamily'] = 'monospace';
        body.style['fontSize'] = '2em';
        console.log = function (string, x) { body.innerText += string += x + '\n'; };
      }());
    </script>
    <script src="script.js"></script>
  </body>

</html>