Skip to content

Instantly share code, notes, and snippets.

function createArray(w, x, y, z) {
  return [w, x, y, z]
}

createArray(1, 4, 6, 3) // [1, 4, 6, 3]
createArray(1, 2, 3, 4) // [1, 2, 3, 4]
createArray("hello", "bye", "test", "morning") // ["hello", "bye", "test", "morning"]

var testArray = [1, 2, 3, 4, 5]