KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Whenever I work with arrays, I always use the [] style, however, when I want to create an array with a fixed amount of elements I use new Array(N) (I don't know any other way of doing this) I thought it wasn't big deal, until I read these strong words about this: Anyone doing this, using “new Array()” instead of “[]“, or “new Object()” instead of “{}” needs to relearn JavaScript. I really want to avoid writting bad code. Anyone mind tell me the right direction to go?
Tags (comma-separated)
Save Edits
Cancel