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
Array Methods You Must Know
How-ToWeb Development

Array Methods You Must Know

via Dev.to JavaScriptSATYA SOOTAR16h ago

Hello readers 👋, welcome to the 5th blog of this JavaScript series . Today we're going to talk about something you'll use almost every day as a JavaScript developer - Array Methods . Imagine you have a box of chocolates. You want to: Add a new chocolate Remove a chocolate Double the number of chocolates Find only the dark chocolates Calculate the total price of all chocolates In JavaScript, our "box of chocolates" is an array , and the actions we want to perform are array methods . Let's dive in and learn these essential methods with simple, practical examples. What are Array Methods? Array methods are built-in functions in JavaScript that allow us to perform common operations on arrays easily. Instead of writing complex loops every time, we can use these methods to write cleaner, more readable code. 1. push() and pop() - Add and Remove from End push() - Add item at the end The push() method adds one or more elements to the end of an array and returns the new length of the array. Examp

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
3 views

Related Articles

Eighty Years Later, the Chemex Still Makes Better Coffee
How-To

Eighty Years Later, the Chemex Still Makes Better Coffee

Wired • 13h ago

The Day I Realized Coding Is Less About Computers and More About Learning How Humans Think
How-To

The Day I Realized Coding Is Less About Computers and More About Learning How Humans Think

Medium Programming • 13h ago

The Strange Advice Engineers Eventually Hear
How-To

The Strange Advice Engineers Eventually Hear

Medium Programming • 17h ago

How-To

A Gentle Introduction to Mercury

Lobsters • 18h ago

Code Is Culture: Why the Language We Build With Matters
How-To

Code Is Culture: Why the Language We Build With Matters

Medium Programming • 1d ago

Discover More Articles