Free coding exercises

Really understand programming.

Practise JavaScript, Python, TypeScript and SQL in your browser, with instant feedback on every exercise.

No account required to start

codington.io/typescript
ChallengeEasy

Explicit vs Inferred

Give the variable score an explicit number type annotation.

123
let score: number;
score = 100;
// ^? Type: number
Console output ready
Check Answer

Write real code

Write and run code in a proper editor. There is nothing to install.

Instant feedback

See right away if your code works, and fix it while you remember why.

Track progress

Your progress is saved in this browser. You don't need an account.

For Teachers

Perfect for courses, bootcamps, and workshops.

Use the exercises with your class. Courses, assignments and grades are on Learnington, our platform for schools.

  • No environment setup required for students
  • Concept-aligned exercises for every topic
  • Great for homework assignments or warm-ups
  • Instant feedback keeps students engaged
👨‍🏫

David Shore

Creator of Codington

"I built this because I teach TypeScript regularly. I needed a way for students to practice the syntax mechanics repeatedly until it clicked, without getting stuck on VS Code configuration."

Ready to write some code?

Choose a subject and solve your first exercise in a few minutes.

Choose a subject