Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
constusername='johndoe'constage=32console.log(`The name of the user is ${username} and his age is ${age}.`)console.log(`Element is: ${$('#article-reaction-actions')}.`)
The outer $ in the template string will start the evaluation. the $ inside of ${} will refer to the global $.
This looks cool.
with you example could you still do this though?
Yep, it would look like this:
The outer
$
in the template string will start the evaluation. the$
inside of${}
will refer to the global$
.Hope this clears it up!
now that I think about it, I guess this would be a scope issue