JevMade

Sign in
← Back to experiments

Humor & parody

jev-leftpad

Left-pad a string by asking Jev how many spaces it needs. Yes, padStart already exists.

Bookmark: jev-leftpad Keep this in your collection.
Leave a noteWhat would you try with this? : jev-leftpad

Only you can see your notes.

Source screenshot of jev-leftpad
SOURCE SCREENSHOTFull screenshot ↗

What it does

The choices stop at ten spaces. Ask for more and the model has no correct answer to give.

How you can use it

You can treat this as a joke experiment to see how an AI model handles counting. Before writing any code, list short words and decide how many spaces you want in front of them. A developer can then set up the package with an access key from TypeSafe to test it.

The tool works by letting the model choose from a fixed list between zero and ten spaces. Because of this, it cannot add more than ten spaces. The model can also pick the wrong number, so do not use this approach for real projects where ordinary code can pad text reliably.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.