Array(3) vs [,,,] Are NOT The Same!

Creating arrays in JavaScript has a hidden trap! Array(3) and [,,,] look identical but behave completely differently. Mind blown!

#javascript #javascripttricks #codingtips #programmingtutorial #arrayconstructor #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arraycreation

https://www.youtube.com/watch?v=Rm7V87ukelA

Array3 vs Are NOT The Same! #arrayconstructor

YouTube