njdennis94

JS String Template Tutorial 2/4

Aug 1st, 2018
163
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!
RAW Paste Data