Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics Hello, JavaScript! JavaScript Everywhere

alert(`Hi,${name} Name is slashed out and its has been deprecated what is another good solution for this

Using Visual Studio Code and ${name} name is deprecated no longer in use what is another good technique

The word name is what has been deprecated. Change it to something else. I had the same problem.

2 Answers

I Jquery the same with JavaScript as it is with Boostrap 4

Brandon White
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brandon White
Full Stack JavaScript Techdegree Graduate 35,771 Points

Hi RIGO,

Are you trying to paste the code from the video into a browser console, or are you trying to paste it into a VS Code Node.js terminal?

If it’s the second option, then alert won’t work for that. The alert() function belongs to the browser environment. The function is actually a method on the browser’s window object, and Node.js has no idea what an alert() is.

If it’s the first option, could you offer any more info about the error you’re seeing? ${} is template string syntax and should not show as deprecated. And name is just a variable name, it’s not a property or something that would be deprecated.