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 trialRIGO 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
31 PointsI Jquery the same with JavaScript as it is with Boostrap 4
Brandon White
Full Stack JavaScript Techdegree Graduate 35,771 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,240 Pointsemmagx
PHP Development Techdegree Graduate 18,240 PointsThe word name is what has been deprecated. Change it to something else. I had the same problem.