Join Eve Porcello for an in-depth discussion in this video Template strings, part of Learning ECMAScript 6.
The function is going to log a quick message…to the console, so it'll just say, "Hello"…plus first name.…And then we'll also go back here and add that space…as well as our semicolon.…Now when I call my print function here,…we're going to pass in a first name so we'll…pass in Isabelle.…And when I take a look at this in my browser…it says, "Hello Isabelle".…
Now let's go ahead and update this…to an ES6 template string.…The first thing that we're going to do to do this…is instead of using these quotation marks,…we're going to use backticks.…So before Hello, we'll use a backtick.…
- What is ECMAScript?
- Transpiling ECMAScript with Babel and Babel-node
- Using the let and const keywords
- Creating strings with template strings
- Enhancing object literals
- Working with ES6 classes and class inheritance
Skill Level Beginner
Q: The Babel API is out of date. How do I proceed with the course?
A: We are updating the course. In the meantime, you can install the babel-cli package and then install the presets that you need to follow along with the tutorials.