---
title: "Discussion on \"Code Benchmark: QCObjects similarities to Python 3 using JavaScript\" | Hashnode"
description: "Discussion on \"Code Benchmark: QCObjects similarities to Python 3 using JavaScript\". List Comprehensions (Python vs QCObjects / JavaScript)"
url: "https://hashnode.com/posts/code-benchmark-qcobjects-similarities-to-python-3-using-javascript/606148c05aa4944ee40faa78"
---

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

Discussion

# [Code Benchmark: QCObjects similarities to Python 3 using JavaScript](https://devblog.qcobjects.org/code-benchmark-qcobjects-similarities-to-python-3-using-javascript?utm_source=hashnode&utm_medium=feed)

List Comprehensions (Python vs QCObjects / JavaScript)

Mar 29, 2021 · 3 min read · devblog.qcobjects.org  
Read the article

-   [#objects](https://hashnode.com/tag/objects)
-   [#python3](https://hashnode.com/tag/python3)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Jean Machuca](https://hashnode.com/@jeanmachuca)

@jeanmachuca

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

Engineer and writer

## Responses 1

Markdown supported · ⌘↵ to post

[Robert Budzyński](https://hashnode.com/@drbob)

[Apr 7, 2021](https://hashnode.com/posts/code-benchmark-qcobjects-similarities-to-python-3-using-javascript/606148c05aa4944ee40faa78/comment/606d79209deb56667e37e363)

All quite easy in pure javascript, thanks to spread syntax:

1.  `[...Array(9).keys()].filter(i => !(i % 2))`
2.  `[...'human']`
3.  `[...Array(10).keys()].map(x => x * x)`
