ES6 Template Strings

node v4.9.1
version: 1.0.0
endpointsharetweet
In ES6 you can use template strings to more easily construct strings:
var person = { name: "Tom", age: 20 }; // Before: var string = person.name + " is " + person.name + " years old"; // Now: var string = `${person.name} is ${person.age} years old`;
Template strings also allow you to write multi-line strings:
var string = `This is<br/> a multi-line string<br/> without having to use<br/> any tricks. Pretty userful<br/> for HTML`
For much more advanced template strings, check out: https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/
Loading…

41 comments

  • posted 3 years ago by jnee505
    http://instagram.com/f008
  • posted 3 years ago by varobalabanoglu1
    Varolbalabanoglu@gmail.com
  • posted 3 years ago by falconxunit
    How about chrome.
  • posted 3 years ago by ralitsa
    Hellow i nid you help me
  • posted 3 years ago by btmh2003
    Está bonito lindo día para que sientas mal
  • posted 3 years ago by 5a590a66b67f620012817bc8
    Good
  • posted 3 years ago by florin
    Good
  • posted 2 years ago by 5a8f236f78679e0012cbc9a9
    can you help me to
  • posted 2 years ago by rake
    Good coordinator
  • posted 2 years ago by kingvader
    Can you help me
  • posted 2 years ago by mohdakram
    Can you help me plzz
  • posted 2 years ago by sherrielee
    Hello i need someone to help me please
  • posted 2 years ago by retweett511
    Twitter followers follow tweets and Facebook META data transfer t retweett511
  • posted 2 years ago by tamu18115
    automobileservices.org
  • posted 2 years ago by nelson1576
    Hello i need someone to help me please
  • posted 2 years ago by anspage
    окончателен
  • posted 2 years ago by kenza
    M'yfrench
  • posted 2 years ago by binroq0
    Thanks
  • posted 2 years ago by ashimmg4
    Mmmmmm
  • posted 2 years ago by viloka
    Help me plz
  • posted 2 years ago by nbaboy342
    Hey
  • posted 2 years ago by 5bdf16a8044148001354017b
    Home 102 it show
  • posted 2 years ago by quangthong81
    Concat
  • posted 2 years ago by 5c3e8cb77bc7300012929b96
    su-wan.examples.io
  • posted a year ago by borathyun
    Vous avez mis trop de temps pour faire le virement et le transfert de mon argent. Ce compte doit être normalement soldé depuis Décembre 2018, et nous sommes déjà en Juin 2019. On doit me payer 10% d'intérêts de retard dès le 25/6/2019 et 20% d'intérêts de retardet ainsi de suite Merci Borath YUN
  • posted a year ago by diouldebalde
    http://diouldehome.wordpress.com
  • posted a year ago by mohstarfidelity21
    http://Afronetfarmersbank.net.ng.com
  • posted 8 months ago by speedy19830509
    Hallo
  • posted 8 months ago by aman3577
    Yes
  • posted 6 months ago by qanon1111
    Mibcoin.io
  • posted 5 months ago by joshmiddlebrooks
    Video 292 double springs Rd monroe Georgia 2016
  • posted 4 months ago by ahmad1234554321
    https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/
  • posted 4 months ago by nicholep
    Yesss
  • posted 3 months ago by asdfgh554662
    zcx
  • posted 2 months ago by 5ee45d32af5b320013c0b8fc
    Namespace/object/string/javascript
  • posted 2 months ago by hassan-45
    Hi
  • posted a month ago by dpcomefast69
    Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. By David L. Porter
  • posted 11 days ago by rocky965
    Good night
  • posted 10 days ago by hejrattaxi
    I want ip namber for Biseness
  • posted 10 days ago by hejrattaxi
    0035935502
  • posted 10 days ago by hejrattaxi
    hejrattsxi.ir

sign in to comment