Last active
December 20, 2016 18:15
-
-
Save nix1947/efb57e94a00ec542e6b2a63a2cf3336e to your computer and use it in GitHub Desktop.
Es6 cheatsheet
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
// Defining new function in Es6 | |
// App is the | |
const App = () => { | |
return "Hello world"; | |
} | |
// new keyword | |
const = "Title" // Can only assigned once. | |
// Exporting the module | |
/* file myname.js */ | |
const NAME = "Manoj"; | |
export default NAME; | |
// Es6 class | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment