push class attributes to array javascript code example Example: javascript array push var SomeRandomArray = []; SomeRandomArray.push("Hello, world!");