Created
May 16, 2016 10:33
-
-
Save mariyadiminsky/01440ae3ba605b02b068993f3bee8cb8 to your computer and use it in GitHub Desktop.
This file contains 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
// Before | |
let bunny = function(name) { | |
console.log("Usagi"); | |
} | |
// After | |
let bunny = (name) => console.log("Usagi") | |
// Step 1: Remove the word ‘function’. | |
let bunny = (name) { | |
console.log("Usagi"); | |
} | |
// Step 2: If your code is less than a line, remove brackets and place on one line. | |
let bunny = (name) console.log("Usagi"); | |
// Step 3. Add the hash rocket. | |
let bunny = (name) => console.log("Usagi"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment