0

The Chrome DevTools

let arrForSplice = [1,2,3,7]
let deletedItems = arrForSplice.splice(3,0,[3,4]);
console.log(arrForSplice)

why it work this way?

  • look at the The Chrome DevTools picture let arrForSplice = [1,2,3,7] let deletedItems = arrForSplice.splice(3,0,[3,4]); must give me Array [1, 2, 3, Array [3, 4], 7] but chrome devtools console if to uncover show array with length 3, it imposible – Ash Barso Mar 16 '21 at 17:03
  • 1
    Ah, it's this: [Weird behavior with objects & console.log](https://stackoverflow.com/a/23429304) – wOxxOm Mar 16 '21 at 17:03

0 Answers0