Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
_jnc
· 11y ago · 0 comments
At least in Ruby, you can only do string interpolation with strings in double quotes.
Comments
[–]
elisee
11y ago
JavaScript up to ES5 doesn't support string interpolation at all. ES6 introduces backticks `before${var}after` for that, but there's still no functional difference between single and double quotes.
[–]
mixmastamyk
11y ago
Interesting they chose that, considering it's deprecated in bash and python.
[–]
sprobertson
11y ago
Coffeescript as well. I try to use single quotes whenever possible, so if a string is templated it stands out a bit with the double quotes.