How to append value to an array in Node.js

1 Answer

0 votes
let arr = [
    "node.js",
    "php",
    "css"
];
 
arr.push("html");
 
console.log(arr);


  
/*
run:
  
[ 'node.js', 'php', 'css', 'html' ]
  
*/

 



answered Apr 11 by avibootz
...