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
Ever wondered what it takes to build a web3 startup from scratch? In the Stellar Dev Diaries series, we follow the journey of a team of developers building on the Stellar Network as they go from hackathon win to getting funded and launching on mainnet.
Top comments (1)
Hi Grace. Good insight. In Ruby, I believe you have to use double quotes
”
for string interpolation.