---
title: "Comment by Younis Shah on \"I can't write a JavaScript for loop, and it does not matter\" | Hashnode"
description: "Enhanced for loop was introduced in Java 5 , not Java 6."
url: "https://hashnode.com/posts/i-cant-write-a-javascript-for-loop-and-it-does-not-matter/5f76e5b37d160d41227d65cb/comment/5f7742919c3b6e4101215dbd"
---

[Discussion](https://hashnode.com/posts/i-cant-write-a-javascript-for-loop-and-it-does-not-matter/5f76e5b37d160d41227d65cb)

Comment [I can't write a JavaScript for loop, and it does not matter](https://hashnode.com/posts/i-cant-write-a-javascript-for-loop-and-it-does-not-matter/5f76e5b37d160d41227d65cb)

[Younis Shah](https://hashnode.com/@wyy)

[Oct 2, 2020](https://hashnode.com/posts/i-cant-write-a-javascript-for-loop-and-it-does-not-matter/5f76e5b37d160d41227d65cb/comment/5f7742919c3b6e4101215dbd)

Enhanced for loop was introduced in [Java 5](https://www.oracle.com/technical-resources/articles/java/java-5-features.html), not Java 6.

[Sébastien Lorber](https://hashnode.com/@sebastienlorber)

[Oct 2, 2020](https://hashnode.com/posts/i-cant-write-a-javascript-for-loop-and-it-does-not-matter/5f76e5b37d160d41227d65cb/comment/5f7742919c3b6e4101215dbd#reply-5f775cc59c3b6e4101215eb2)

Ah good point. I guess my school teachers were using Java4 :D
