DEV Community

Cover image for Range in JavaScript using es6 metaprogramming features

Range in JavaScript using es6 metaprogramming features

Franciszek Krasnowski on August 11, 2020

Ranges and range like constructs are common features in programming languages. Such as Python: for x in range(1, 4): print(x) #prints: 1, 2,...
Collapse
 
kosich profile image
Kostia Palchyk

Great article! I especially enjoyed this part:

3.8 in range(1, 3) // Outputs: false

Nice 👏

Collapse
 
fkrasnowski profile image
Franciszek Krasnowski

Glad you enjoy it. After all, JS seems to be quite a flexible language