Can you use string interpolation for objects?

say I have an object …

let myObject = {
 one: 'smth here',
 two: 'smth here',
 three: 'smth here',
}

… and I want to put one of those values into one of my strings. Is it possible to just do ${myObject.one} inside the string, or do I need to do something else?

3 Likes

Should work! Try it! :slight_smile:

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.