We can use a new syntax ${PARAMETER} inside of the back-ticked string.
varname=`Your name is ${firstName}${lastName}.`
Multi-line Strings in ES6
Just use back-ticks.
letlorem=`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla pellentesque feugiat nisl at lacinia.`
Arrow Functions
Arrow functions – also called fat arrow functions, are a more concise syntax for writing function expressions. They utilize a new token, =>, that looks like a fat arrow. Arrow functions are anonymous and change the way this binds in functions.
There are a variety of syntaxes available in arrow functions, of which MDN has a thorough list.
Basic Syntax with Multiple Parameters (from MDN)
Curly brackets and return aren’t required if only one expression is present. The preceding example could also be written as:
Parentheses are optional when only one parameter is present but are required when no parameters are present.