DEV Community

Cover image for How to make Infinity!
Mafee7
Mafee7

Posted on • Edited on

How to make Infinity!

Liquid syntax error: Unknown tag 'endraw'

Top comments (5)

Collapse
 
_bkeren profile image
'' •

parseInt(${"9".repeat(304)}) returns a number , parseInt(${"9".repeat(305)}) returns Infinity

Collapse
 
mafee6 profile image
Mafee7 •

Cuz that's where the number exits the limit
Hence infinity

Collapse
 
_bkeren profile image
'' •

but that's interesting, because 304 is not power of 2.

Collapse
 
mafee6 profile image
Mafee7 •

😳

Collapse
 
mafee6 profile image
Mafee7 •

btw there is a hard limit on the number you can use in repeat also!