---
title: "Dev Raj Sharma (@codewithsharma) | Hashnode"
description: "MERN Stack developer from India. Read the latest articles by Dev Raj Sharma on Hashnode."
url: "https://hashnode.com/@codewithsharma"
---

@codewithsharma

# Dev Raj Sharma

@codewithsharma · Jalandhar, India · Joined January 2024

MERN Stack developer from India.

### [forEach() vs map() in JavaScript](https://codewithsharma.hashnode.dev/foreach-vs-map-in-javascript?utm_source=hashnode&utm_medium=feed)

Map() function In JavaScript, the map function is a higher-order function that is used to create a new array by applying a provided function to each element of an existing array. The original array remains unchanged. The map function takes a callback...

2 min read · [codewithsharma.hashnode.dev](https://codewithsharma.hashnode.dev/foreach-vs-map-in-javascript?utm_source=hashnode&utm_medium=feed)

[Jan 16, 2024](https://hashnode.com/posts/foreach-vs-map-in-javascript/65a69b4ad49fb70b32ad764a)
