JavaScript Node.js Basics Handling Errors in Node Handling Errors in Node

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

Is treehouse challenge not yet implement ES2015 ? (especially the interpolation)

the arrow function seems fine but the interpolation using backtick (`) still get an error.

Rifqi Fahmi:

I don't know what track you're on, but yes, there is an "Introducing ES2015" Treehouse course. It's part of the updated Full Stack JavaScript track. I think you haven't updated your track as you either haven't reviewed the changes to your track nor accepted your changes. Your notification would have been located at the beginning of your track before the list of all the individual modules in your track.

I'm not sure what you're calling a "back tick," unless it's the key left of the ! & 1 key () on your keyboard, or the "back slash" key (\\\) which is to the right of the } & ] on your keyboard. The "forward slash" (///) is on the same key as the ? It is used for directory/folder/file paths. The instructor is using the () key to comment in the terminal, not to execute commands.

Sometimes, you'll want to enlarge your view of the video to "full screen" so you can see what the instructor types in the terminal at the Command Prompt. Laptop computer screens (viewports) aren't as tall as desktop computer screens (viewports), so the videos can look "scrunched" on a laptop computer screen. You can escape from the full screen mode by clicking on the bottom right corner of the video panel where the diagonal arrows are located.

1 Answer

Node.js implements some, but not all ES2015 features.

See the article ECMAScript 2015 (ES6) and beyond for more information.

Presumably the challenge system (and workspaces, etc) use a particular version of Node, and it may not be the newest version.

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

yeah i guess so, thanks for the answer :D