array push

array push

hey guys i'm having difficulty when it comes to adding a value to a array key...i've tried to push array and also looked on the internet but i've had no joy.

  1. var arr = {'words' : 'hello'};

i want to be able to add another value to the key so i get this result

  1. {'words' : ['hello', 'hey']};

i've tried

  1. arr.push("{'words':' 'hey'}"); 

and other variations...thank you