If I use test for RGB color var name it doesn’t work, I must use color :
Page 1 / 1
Hey, this is because you are using property shorthand.
See Object Literals Using Object Property Shorthand | JavaScript in Plain English
If you want to use test as variable pass instead.
[{ type: 'SOLID, color: test }]
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.