Code: Select all
' Ruby-style
user = "PJ"
return "Welcome back, #{user}!"
In JavaScript, we have to use backtick strings to interpolate, likely for backward compatibility:
Code: Select all
' ES5/ES6 style
user = "PJ"
return `Welcome back, ${user}!`
Again, I wouldn't presume to know how hard or impossible this would be in the context of the BrightScript black-box, but I'd love to hear more.