In JavaScript, string interpolation must be enclosed in the backticks:
`The count is ${num}`
In Ruby, string interpolation is written as a normal string, with single or double quotes:
"The count is #{num}"
In JavaScript, string interpolation must be enclosed in the backticks:
`The count is ${num}`
In Ruby, string interpolation is written as a normal string, with single or double quotes:
"The count is #{num}"
For further actions, you may consider blocking this person and/or reporting abuse
PubNub Developer Relations -
Carc -
Abhishek Adhikari -
Yukti Manoj Mulani -
Top comments (1)
Hi Grace. Good insight. In Ruby, I believe you have to use double quotes
”
for string interpolation.