Skip to content

Instantly share code, notes, and snippets.

@lkostrowski
Created September 11, 2020 20:25
Show Gist options
  • Save lkostrowski/772f026be1cbebb52cb79f0958462707 to your computer and use it in GitHub Desktop.
Save lkostrowski/772f026be1cbebb52cb79f0958462707 to your computer and use it in GitHub Desktop.
const a = [1, 2, 3, 4, 5];
// Implement this
a.multiply()
console.log(a) // [1, 2, 3, 4, 5, 1, 4, 9, 16, 25]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment