SyntaxFix
Write A Post
Hire A Developer
Questions
Off the top of my head I think it should be done like this:
var veggies = "carrot"; var fruitvegbasket = []; fruitvegbasket.push(veggies);