+ 1

${name} not working

This code does not work, i was watching a youtube video about js and I wrote the exact same code (or maybe not idk) but it doesn't work for me. I wrote it too in vscode on my computer and it still doesn't work Somebody help lol This is the code: https://code.sololearn.com/W6b5PDmEYjDo/?ref=app

29th May 2022, 3:21 AM
Andres Villarreal
Andres Villarreal - avatar
1 Answer
+ 5
When using ${} you have to use backticks (`) instead of quotation marks. https://letstacle.com/dollar-sign-javascript
29th May 2022, 3:31 AM
Simon Sauter
Simon Sauter - avatar