---
title: "Discussion on \"A look into for...in and for...of\" | Hashnode"
description: "Discussion on \"A look into for...in and for...of\". for...in loop\nSyntax\nfor (variableName in arrayName/objectName)\n  statement\n\nThe for-in loop will loop through the enumerable properties of a JavaScript iterable.This means that when you iterate over an array the variableName in the syntax will retur..."
url: "https://hashnode.com/posts/a-look-into-forin-and-forof/63ff7ed392f2999af54de876"
---

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

Discussion

# [A look into for...in and for...of](https://tushar-anekar.hashnode.dev/a-look-into-forin-and-forof?utm_source=hashnode&utm_medium=feed)

for...in loop Syntax for (variableName in arrayName/objectName) statement The for-in loop will loop through the enumerable properties of a JavaScript iterable.This means that when you iterate over an array the variableName in the syntax will retur...

Mar 1, 2023 · 2 min read · tushar-anekar.hashnode.dev  
Updated Sep 15, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Tushar Anekar](https://hashnode.com/@TusharAnekar)

@TusharAnekar · Pune, Maharashtra, India

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

Aspiring web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
