How to append more that one value to an array in Node.js

1 Answer

0 votes
let arr = [
    "node.js",
    "php",
    "css"
];
  
arr.push("html", "database");
  
console.log(arr);
 
 
   
/*
run:
 
[ 'node.js', 'php', 'css', 'html', 'database' ]
   
*/

 



answered Apr 11 by avibootz
...