---
title: "Discussion on \"For...of and For...in loops\" | Hashnode"
description: "Discussion on \"For...of and For...in loops\". The for...in and for...of loops both do the same thing but quite differently, both loop through the enumerable properties of an object but the main difference is that the for...in loops through the keys while for...of loops through the values.\nThese ..."
url: "https://hashnode.com/posts/forof-and-forin-loops/63af0e9d359f463d43abee11"
---

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

Discussion

# [For...of and For...in loops](https://blog.timfon.dev/forof-and-forin-loops?utm_source=hashnode&utm_medium=feed)

The for...in and for...of loops both do the same thing but quite differently, both loop through the enumerable properties of an object but the main difference is that the for...in loops through the keys while for...of loops through the values. These ...

Feb 12, 2020 · 2 min read · blog.timfon.dev  
Read the article

## Written by

[Edmund Ekott](https://hashnode.com/@Edmund1645)

@Edmund1645

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

Software Developer

Frontend Engineer who loves building tools.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
