Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to push two values in array at once

let arr = [];
arr.push(1);
arr.push(2);
console.log(arr);

result [1, 2]
Comment

PREVIOUS NEXT
Code Example
Javascript :: get form data in js 
Javascript :: axios react js 
Javascript :: react icon import 
Javascript :: string padStart padEnd 
Javascript :: parsley validation checkbox 
Javascript :: Activelink.js 
Javascript :: how to get location javascript 
Javascript :: js reverse a strings in array 
Javascript :: document style 
Javascript :: onclick hold react 
Javascript :: run javascript sublime text 3 
Javascript :: add event listener to all a tags 
Javascript :: javascript array to string without commas 
Javascript :: script tags in react 
Javascript :: json to array javascript 
Javascript :: js array contains 
Javascript :: vue js encrypt localstorage data 
Javascript :: javascript ascii character a to z 
Javascript :: on button click show collapse div jquery 
Javascript :: react native dynamically update flatlist data 
Javascript :: convert array to csv javascript 
Javascript :: JavaScript throw with try...catch 
Javascript :: js fetch status of 500 
Javascript :: trim string in javascript 
Javascript :: set embed color discord.js 
Javascript :: adding a if stement in jsx 
Javascript :: javascript convert minus to plus 
Javascript :: how to find last element of an array 
Javascript :: why app.use(cors()) not workin 
Javascript :: math.floor 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =