I am trying to create a javascript object inside of a helper method. What I am trying to accomplish is basically create a map so key=value. here is the code I have
var tabVariables = {
0 : $A.get("$Label.c.UX_APPLIED_CC"),
1 : $A.get("$Label.c.UX_SAVED"),
2 : $A.get("$Label.c.UX_DIRECT"),
$A.get("$Label.c.UX_APPLIED_CC") : 0
};
The first three lines work fine. the 4th line $A.get("$Label.c.UX_APPLIED_CC") : 0 gives me an error "Unexpected token .". Any idea if it is possible to do this with the label?