String interpolation

Grace Do - May 17 - - Dev Community

In JavaScript, string interpolation must be enclosed in the backticks:

`The count is ${num}`
Enter fullscreen mode Exit fullscreen mode

In Ruby, string interpolation is written as a normal string, with single or double quotes:

"The count is #{num}"
Enter fullscreen mode Exit fullscreen mode
. . . . .
Terabox Video Player