FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Just Finished Array 101
NewsWeb Development

Just Finished Array 101

via Dev.to JavaScriptBhupesh Chandra Joshi1mo ago

What are arrays? Array is an object ,as we know that everything is object in Javascipt. If your programming background is strongly typed language for ex- python ,java and c, you think of arrays as sequential chunks of memory that house collections of items of the same type,where each chunk of memory is of fixed size and has an associated index through which you can easily access it. But as with many things in JavaScript, arrays come with a twist: 1-Iterating with for..in: Using for..in on arrays is dangerous because it iterates over array indices and any custom properties added to the prototype, which can cause issues if Array.prototype is extended. Better way to iterate a array: Use the for of loop: const colors = ['red', 'green', 'blue']; for(const web of colors){ console.log(web); } Why for in loop not recommended for arrays. 2-Shallow Copying Issues: When cloning arrays, objects nested inside are still passed by reference. Modifying a nested object in the copy will mutate the origi

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
33 views

Related Articles

These 7 wellness gadgets helped me become more mindful (and they're still on sale)
News

These 7 wellness gadgets helped me become more mindful (and they're still on sale)

ZDNet • 16h ago

20+ pocket-sized tech gadgets packed with purpose (and they're on sale)
News

20+ pocket-sized tech gadgets packed with purpose (and they're on sale)

ZDNet • 17h ago

We still highly recommend these 3 older laptop models - especially while they're on sale
News

We still highly recommend these 3 older laptop models - especially while they're on sale

ZDNet • 18h ago

RefundYourSOL (RYS): Recovering Lost Value in the Solana Ecosystem
News

RefundYourSOL (RYS): Recovering Lost Value in the Solana Ecosystem

Medium Programming • 18h ago

News

Best Free Developer Tools Online (2026)

Medium Programming • 18h ago

Discover More Articles