This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple problems to solve using the native .reduce and .map array methods. Each of these problems can be solved in many | |
// different ways, but try to solve them using the requested higher order function. | |
// MAP | |
// Write a function capitalize that takes a string and uses .map to return the same string in all caps. | |
// ex. capitalize('whoop') // => 'WHOOP' | |
// ex. capitalize('oh hey gurl') // => "OH HEY GURL" | |
var capitalize = function(string){ | |
// code code code! |