Advertisement
njdennis94

JS String Template Tutorial 2/4

Aug 1st, 2018
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  'use strict'
  2.  let x = 4;
  3. let message = `The number ${x} is ${x % 2 == 0 ? 'even' : 'odd'}!` // The number 4 is even!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement