Automation Tools

Code Kata Sandbox

Practice quick JavaScript exercises with built-in tests, hints, and timing metrics. Perfect for warming up or sharpening your problem-solving muscles.

Reverse a string
Implement `kata(str)` to return the input string reversed. Ignore casing rules and keep whitespace intact.Easy

Hints

  • Remember that strings can be converted to arrays for easier manipulation.
  • Try using built-in array helpers to reverse characters.
Test results
Feedback from the last run. All tests use deep equality via JSON comparison.

No tests run yet. Write your solution and click “Run tests”.

Challenge notes

• Each challenge expects you to export a function via module.exports.

• Tests run with JSON.stringify equality. For deep objects, ensure property order is consistent.

• Want more katas? Duplicate this page, add new challenge entries, or build a custom runner with additional assertions.

Stretch goals

• Time-box your attempts to 10 minutes for a coding warm-up. Repeat the kata with different approaches.

• After solving, refactor to minimize allocations or prefer functional style.

• Teach others: export your final functions and pair with the Mini Browser VM to show how they work step-by-step.