how to add two numbers form the same array in javascript code example Example: javascript add multiple items to array var a = []; a.push(1, 2, 3); console.log(a);