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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![RIGO GOMEZ](https://secure.gravatar.com/avatar/63547280a617acc722036126e04e0b5a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
RIGO GOMEZ
31 Pointsalert(`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
2 Answers
![RIGO GOMEZ](https://secure.gravatar.com/avatar/63547280a617acc722036126e04e0b5a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
RIGO GOMEZ
31 PointsI Jquery the same with JavaScript as it is with Boostrap 4
![Brandon White](https://uploads.teamtreehouse.com/production/profile-photos/10746138/micro_4228B6A1-B7B6-47B8-9D23-EB9C488C56CC.jpg)
Brandon White
Full Stack JavaScript Techdegree Graduate 34,662 PointsHi 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.
emmagx
PHP Development Techdegree Graduate 18,239 Pointsemmagx
PHP Development Techdegree Graduate 18,239 PointsThe word name is what has been deprecated. Change it to something else. I had the same problem.