Join the Webstudio community

Updated 3 weeks ago

Use of vars

I don't really need help. Just something that's unclear to me.
Sometimes we need to put a var inside ${...} and sometimes we don't?
I am sure this makes total sense to anyone who knows why. But I think it's an example of the type of thing that can be confusing for 'no-coders'.
Attachments
image.png
image.png
O
5 comments
${} is an interpolation syntax inside a string
You put variable inside a string basically
On the left you made an object, not a string
btw if in doubt, ask AI, its a standard javascript syntax it knows
Add a reply
Sign up and join the conversation on Discord