Challenges

These are longer edits that combine several techniques. Press Check to see what's still missing. Everything else in the file has to stay as it was.

Start a challenge

JavaScript

  • Update a notice

    Make three small changes to a notice, and leave the older copy next to it as it is.

    Foundation · Words · quotes · deleting a word · builds on Checkpoint: words and strings in real files

  • Skip the exceptions

    Rename something everywhere except the one place that has to keep the old name.

    Advanced · Search · cgn · repeating a change · builds on Search, change, inspect, repeat

  • Put lines in order

    Move lines that are in the wrong order, without changing what they say.

    Intermediate · Moving lines · search · builds on Copy and move text

  • Retire a feature

    Remove a feature nobody uses any more, and keep the code other parts still need.

    Advanced · Search · deleting lines · repeating a change · builds on Build one repeatable change

  • Group related buttons

    Give a row of buttons a container of their own so the row can wrap, and keep their order and handlers.

    Intermediate · Quotes · opening lines · indenting · builds on Reshape without retyping

  • Share repeated settings

    Move settings that repeat into one shared value, and leave the one that's different alone.

    Intermediate · Brace text objects · yank and put · search · builds on Copy and move text

  • Reorder processing steps

    Move the steps of a function so each one comes after the step it needs.

    Intermediate · Paragraphs · moving blocks · search · builds on Use paragraph boundaries

Python

  • Update a notice

    Make three small changes to a notice, and leave the older copy next to it as it is.

    Foundation · Words · quotes · deleting a word · builds on Checkpoint: words and strings in real files

  • Skip the exceptions

    Rename something everywhere except the one place that has to keep the old name.

    Advanced · Search · cgn · repeating a change · builds on Search, change, inspect, repeat

  • Put lines in order

    Move lines that are in the wrong order, without changing what they say.

    Intermediate · Moving lines · search · builds on Copy and move text

  • Retire a diagnostic

    Remove data nobody reads any more, and keep everything else the code still needs.

    Advanced · Search · deleting lines · repeating a change · builds on Build one repeatable change

  • Share repeated settings

    Move settings that repeat into one dictionary, and leave the one that's different alone.

    Intermediate · Brace text objects · yank and put · search · builds on Copy and move text

  • Reorder processing steps

    Move the steps of a function so each one comes after the step it needs.

    Intermediate · Paragraphs · moving blocks · search · builds on Use paragraph boundaries

Plain text

  • Update a notice

    Make three small changes to a notice, and leave the older copy next to it as it is.

    Foundation · Words · quotes · deleting a word · builds on Checkpoint: words and strings in real files

  • Skip the exceptions

    Rename something everywhere except the one place that has to keep the old name.

    Advanced · Search · cgn · repeating a change · builds on Search, change, inspect, repeat

  • Put lines in order

    Move lines that are in the wrong order, without changing what they say.

    Intermediate · Moving lines · search · builds on Copy and move text