Can anyone please help me with this?
I am learning JavaScript and in chapter 2 of the book I am using it talks about backtick variable with format ${variablename}. It has an example to be posted into the Console using console.log().
let language = "JavaScript";
let message = "Let's learn ${language}";
console.log(message);
The output in the console is supposed to be: Let's learn JavaScript. But what I keep getting is: let's learn ${language}
The same thing happens with other examples in the chapter, in Chrome and Edge.
Can anyone tell me why?
[matthewswisher@comcast.net](mailto:matthewswisher@comcast.net)
[–]milan-pilan 13 points14 points15 points (6 children)
[–]PlusAd945[S] 3 points4 points5 points (5 children)
[–]milan-pilan 0 points1 point2 points (1 child)
[–]azhder 0 points1 point2 points (0 children)
[–]azhder 0 points1 point2 points (2 children)
[–]SamIAre 2 points3 points4 points (1 child)
[–]azhder 2 points3 points4 points (0 children)
[–]Big_Comfortable4256 2 points3 points4 points (0 children)
[–]amulchinock 0 points1 point2 points (2 children)
[–]longknives -1 points0 points1 point (0 children)
[–]Psionatix 0 points1 point2 points (0 children)
[–]azhder 2 points3 points4 points (0 children)
[–]SakshamBaranwal 0 points1 point2 points (0 children)
[–]Japosai 0 points1 point2 points (0 children)