Question: What will this code log to the console?

  1. [4,5,6,7,8,9,10]
  2. [4,5,6,7]
  3. [1,2,3,4,5,6]
  4. [4,5,6]

Answer: The correct answer of the above question is Option D:[4,5,6]