push method call inside array js code example Example: javascript array push var SomeRandomArray = []; SomeRandomArray.push("Hello, world!");