Last active
July 25, 2016 14:04
-
-
Save savelee/c5e252ae5e5131d4e175cd18ff931965 to your computer and use it in GitHub Desktop.
Example of template literals
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
//ES2015 | |
let product = "Sencha"; | |
let myText = `${product} provides the industry's most comprehensive collection of high-performance, customizable UI widgets. | |
These "widgets" include HTML5 grids, trees, lists, forms, menus, toolbars, panels, windows, and much more. | |
If you don't find a widget you are looking for, hundreds of user extensions are available from the Sencha community.`; |
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
//ES5 | |
var product = "Sencha"; | |
var myText = product + " provides the industry's most comprehensive collection of high-performance, customizable UI widgets." + | |
"These \"widgets\" include HTML5 grids, trees, lists, forms, menus, toolbars, panels, windows, and much more." + | |
"If you don't find a widget you are looking for, hundreds of user extensions are available from the Sencha community."; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment