---
title: "Discussion on \"Using Loops With Arrays in JavaScript\" | Hashnode"
description: "Discussion on \"Using Loops With Arrays in JavaScript\". let num = [3, 54, 1, 2, 4]\n// for(let i=0; i<num.length;i++){// console.log(num[i])// }\n// For each loopnum.forEach((element)=>{console.log(element*element)})\n// Array.from => Use to create an array from any other object// Array.from (\"Sage\")let name..."
url: "https://hashnode.com/posts/using-loops-with-arrays-in-javascript/6490ce676002b107d34cef08"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Loops With Arrays in JavaScript](https://sksage.hashnode.dev/using-loops-with-arrays-in-javascript?utm_source=hashnode&utm_medium=feed)

let num = \[3, 54, 1, 2, 4\] // for(let i=0; i<num.length;i++){// console.log(num\[i\])// } // For each loopnum.forEach((element)=>{console.log(element\*element)}) // Array.from => Use to create an array from any other object// Array.from ("Sage")let name...

Jun 19, 2023 · 1 min read · sksage.hashnode.dev  
Updated Oct 13, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#jsarray](https://hashnode.com/tag/jsarray)
-   [#javascript-developer-i-exam-questions](https://hashnode.com/tag/javascript-developer-i-exam-questions)
-   [#javascript-while-loop](https://hashnode.com/tag/javascript-while-loop)
-   [#javascript-array-methods](https://hashnode.com/tag/javascript-array-methods)

## Written by

[Siddharth Kanojiya](https://hashnode.com/@sksage)

@sksage · Jabalpur ,Madhya Pradesh (Bhar

  
[View profile](https://hashnode.com/@sksage)

“When I wrote this code, only God and I understood what I did. Now only God knows.” https://www.buymeacoffee.com/junoriver88

I am very passionate Coder https://www.buymeacoffee.com/junoriver88

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
