Examples
Programs you can run in the browser
Short, original snippets for JavaScript, TypeScript, and Python. Open one in the editor, press Run, then change it — no account required.
JavaScript
All JavaScript examplesFizzBuzz in JavaScript
Print 1 to 20, replacing multiples of 3 with Fizz, 5 with Buzz, and both with FizzBuzz. Run it online with no signup.
Factorial in JavaScript
Compute n! with a simple loop. A short JavaScript snippet you can run online instantly.
Palindrome check in JavaScript
Test whether a string reads the same forwards and backwards. Run this JavaScript palindrome checker online.
Fibonacci sequence in JavaScript
Print the first Fibonacci numbers with an iterative loop — no recursion, no install.
Two Sum in JavaScript
Find two numbers that add up to a target. A common interview warm-up you can run online.
Reverse a string in JavaScript
Reverse characters with spread syntax. A tiny JavaScript snippet for the online editor.
TypeScript
All TypeScript examplesPython
All Python examplesFizzBuzz in Python
Print 1 to 20 with Fizz, Buzz, and FizzBuzz. Run this Python example online with no signup.
Factorial in Python
Compute n! with a loop. A short Python snippet for the online compiler.
Palindrome check in Python
Test whether a string is a palindrome after normalizing case and spaces.
Fibonacci sequence in Python
Generate Fibonacci numbers iteratively and print them as a list.
Python list basics
Create a list, append, slice, and loop. A beginner Python list tutorial you can run online.
Python dictionary basics
Store key-value pairs, look up a score, and loop over items in a dict.
Reverse a string in Python
Reverse characters with slicing. A one-liner you can try in the online Python compiler.