Skip to content

Instantly share code, notes, and snippets.

@masautt
Last active September 3, 2019 23:03
Show Gist options
  • Save masautt/0d1918dcaa0378fcdfcc724ef8facaab to your computer and use it in GitHub Desktop.
Save masautt/0d1918dcaa0378fcdfcc724ef8facaab to your computer and use it in GitHub Desktop.
How to append to array in JavaScript?
let myArr = ["1", "2", "3"];
myArr.push("4");
console.log(myArr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment