Sun 2019.08.04
Strings are delimited with the double quote "
"
Json name/value values and Html attributes delimited with the single quote '
'
That character is the grave accent. ` Template Literal
`
New Web IDE - testers
Proper usage as you require explained in detail by @allObjects
http://forum.espruino.com/conversations/309985/
Single quotes go inside a double quoted string, (unless escaped as you show) not double embedded in a single quoted string.
https://www.javascript.com/learn/strings https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sun 2019.08.04
Strings are delimited with the double quote
"
Json name/value values and Html attributes delimited with the single quote
'
That character is the grave accent.
`
Template LiteralProper usage as you require explained in detail by @allObjects
Single quotes go inside a double quoted string, (unless escaped as you show) not double embedded in a single quoted string.