const log = level => msg => '[' + level + '] ' + msg;
const warn = log('WARN');
warn('Low memory'); // '[WARN] Low memory'Curried loggers let you partially apply the log level for reuse throughout the codebase.
Curried functions are powerful when reused in different contexts.
Challenge: Create a curried power function and use it to create square and cube functions.