Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

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…

34 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 2 years ago by 5a590a66b67f620012817bc8
    Good
  • posted 2 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 a year 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 9 months ago by mohstarfidelity21
    http://Afronetfarmersbank.net.ng.com
  • posted 6 months ago by speedy19830509
    Hallo
  • posted 6 months ago by aman3577
    Yes
  • posted 4 months ago by qanon1111
    Mibcoin.io
  • posted 3 months ago by joshmiddlebrooks
    Video 292 double springs Rd monroe Georgia 2016
  • posted 2 months ago by ahmad1234554321
    https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/
  • posted a month ago by nicholep
    Yesss
  • posted 14 days ago by asdfgh554662
    zcx

sign in to comment