secretgspot
10/7/2019 - 3:16 AM

FUNCTIONS

/*
.___.  ..  . __ .___.._..__..  . __.
[__ |  ||\ |/  `  |   | |  ||\ |(__ 
|   |__|| \|\__.  |  _|_|__|| \|.__)
*/

/* ▀▀▀ // Curried function */
function addition(x) {
   return function(y) {
     return x + y;
   }
}
var addThreeTo = addition(3);
addThreeTo(6);


/* ▀▀▀ // declared IIFE */
var smplMsg = 
(simpleMessage = (msg) => {
  console.log(msg || 'hi');
});