r/Basic • • Sep 24 '22

BASIC Anywhere Machine: New LPRINT statement

https://www.youtube.com/watch?v=wYVj3K4HRuk
4 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/CharlieJV13 Sep 25 '22

From the MDN:

In V8 (used by Chrome and Node), the maximum length is 229 - 24 (~1GB). On 32-bit systems, the maximum length is 228 - 16 (~512MB).

In Firefox, the maximum length is 230 - 2 (~2GB). Before Firefox 65, the maximum length was 228 - 1 (~512MB).

In Safari, the maximum length is 231 - 1 (~4GB).

So a string variable can handle a pretty large aggregation of text before you need to get into the business of merging a bunch of files.