Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Looping counter

JavaScript, 25 bytes Could be 21 but calling the function like that feels like cheating. (f=s=>f(s+=8,print(s)))`` Try it online! 22 bytes Didn't want to post this as my main solution a...

posted 2y ago by Shaggy‭  ·  edited 2y ago by Shaggy‭

Answer
#3: Post edited by user avatar Shaggy‭ · 2022-09-22T14:46:54Z (about 2 years ago)
  • # JavaScript, 25 bytes
  • <!-- language-all: lang-javascript -->
  • (f=s=>f(s+=8,print(s)))``
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/18jzbbY1i5No1jb1kKnoCgzr0SjWFNTMyHh/38A)
  • ## 22 bytes
  • Didn't want to post this as my main solution as it's pretty much the same as Moshi's.
  • for(s=``;;)print(s+=8)
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/z8tv0ij2DYhwdpas6AoM69Eo1jb1kLz/38A)
  • # JavaScript, 25 bytes
  • Could be [21](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/z/NttjWLk2jWNvWQqegKDOvRKNYU/N/WkLCfwA) but calling the function like that feels like cheating.
  • <!-- language-all: lang-javascript -->
  • (f=s=>f(s+=8,print(s)))``
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/18jzbbY1i5No1jb1kKnoCgzr0SjWFNTMyHh/38A)
  • ## 22 bytes
  • Didn't want to post this as my main solution as it's pretty much the same as Moshi's.
  • for(s=``;;)print(s+=8)
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/z8tv0ij2DYhwdpas6AoM69Eo1jb1kLz/38A)
#2: Post edited by user avatar Shaggy‭ · 2022-09-13T08:50:56Z (about 2 years ago)
  • # JavaScript, 25 bytes
  • <!-- language-all: lang-javascript -->
  • (f=s=>f(s+=8,print(s)))``
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/18jzbbY1i5No1jb1kKnoCgzr0SjWFNTMyHh/38A)
  • # JavaScript, 25 bytes
  • <!-- language-all: lang-javascript -->
  • (f=s=>f(s+=8,print(s)))``
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/18jzbbY1i5No1jb1kKnoCgzr0SjWFNTMyHh/38A)
  • ## 22 bytes
  • Didn't want to post this as my main solution as it's pretty much the same as Moshi's.
  • for(s=``;;)print(s+=8)
  • [Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/z8tv0ij2DYhwdpas6AoM69Eo1jb1kLz/38A)
#1: Initial revision by user avatar Shaggy‭ · 2022-09-09T15:15:22Z (about 2 years ago)
# JavaScript, 25 bytes

<!-- language-all: lang-javascript -->

    (f=s=>f(s+=8,print(s)))``

[Try it online!](https://tio.run/##y0osSyxOLsosKNEtLshMSS3Kzc/LTq38/18jzbbY1i5No1jb1kKnoCgzr0SjWFNTMyHh/38A)