C
h
i
L
L
u
.
.
.
Practice Exercises

Sharpen Your Coding Skills

34+ hands-on exercises across 7 languages — solve them in the live compiler and level up your skills.

34+
Exercises
7
Languages
3
Levels
1

Build a Personal Bio Page

Beginner

Create a bio page with headings, paragraphs, a photo, and links to social profiles.

Solve in Compiler
2

Build a Signup Form

Beginner

Design a signup form using all major input types: text, email, password, checkbox, and submit.

Solve in Compiler
3

Create a Responsive Table

Beginner

Build an HTML table with headers, merged cells (colspan/rowspan), and basic CSS styling.

Solve in Compiler
4

HTML5 Semantic Layout

Intermediate

Build a blog-style page using semantic elements: header, nav, main, article, aside, footer.

Solve in Compiler
1

Center a Div

Beginner

Center an element both horizontally and vertically using 3 different CSS techniques.

Solve in Compiler
2

Responsive Card Grid

Intermediate

Build a responsive card grid that adapts from 1 to 3 columns using CSS Grid.

Solve in Compiler
3

CSS Animations

Intermediate

Create a button with a hover glow effect and a spinner animation using @keyframes.

Solve in Compiler
4

Dark Mode Toggle

Intermediate

Implement a light/dark mode toggle using CSS variables and a class on the body element.

Solve in Compiler
5

Sticky Header & Scroll Snap

Advanced

Build a page with a sticky navbar and scroll-snap sections for a smooth scroll experience.

Solve in Compiler

JavaScript

View Tutorial →
1

Reverse a String

Beginner

Write a function that reverses a string without using the built-in reverse() method.

Solve in Compiler
2

FizzBuzz

Beginner

Print numbers 1–100, replacing multiples of 3 with Fizz, 5 with Buzz, 15 with FizzBuzz.

Solve in Compiler
3

Palindrome Checker

Beginner

Determine if a given string reads the same forwards and backwards.

Solve in Compiler
4

Fetch Data from an API

Intermediate

Fetch users from a public API and render them as cards with name, email, and avatar.

Solve in Compiler
5

Debounce Function

Intermediate

Implement a debounce utility that delays function execution until after a wait period.

Solve in Compiler
6

Deep Clone an Object

Advanced

Write a function to deep-clone a nested object without using JSON.parse/JSON.stringify.

Solve in Compiler
1

Count Word Frequency

Beginner

Given a sentence, count the frequency of each word and print the top 5 most common.

Solve in Compiler
2

Fibonacci Generator

Beginner

Write a generator function that yields Fibonacci numbers lazily on demand.

Solve in Compiler
3

File Word Counter

Beginner

Read a text file and return the total number of words, lines, and unique words.

Solve in Compiler
4

Flatten Nested List

Intermediate

Write a recursive function to flatten an arbitrarily nested list into a flat list.

Solve in Compiler
5

Simple Web Scraper

Intermediate

Fetch a Wikipedia page and extract all headings using requests and BeautifulSoup.

Solve in Compiler
6

Mini ORM

Advanced

Build a simple object-relational mapper that maps Python classes to SQLite tables.

Solve in Compiler
1

Select & Filter Rows

Beginner

Write queries using SELECT, WHERE, ORDER BY, and LIMIT on a products table.

Solve in Compiler
2

JOIN Tables

Beginner

Use INNER JOIN to combine an orders table with a customers table to show order details.

Solve in Compiler
3

Aggregate Functions

Intermediate

Use COUNT, SUM, AVG, MIN, MAX and GROUP BY to analyze a sales dataset.

Solve in Compiler
4

Subqueries

Intermediate

Find all customers who spent more than the average order amount using a subquery.

Solve in Compiler
5

Window Functions

Advanced

Rank employees by salary within each department using ROW_NUMBER and RANK.

Solve in Compiler
🔷

TypeScript

View Tutorial →
1

Type a User Object

Beginner

Define an interface for a User with optional fields, nested types, and union types.

Solve in Compiler
2

Generic Stack

Intermediate

Implement a generic Stack<T> class with push, pop, peek, and isEmpty methods.

Solve in Compiler
3

Utility Types

Intermediate

Use Partial, Required, Readonly, and Pick to transform an interface in 4 exercises.

Solve in Compiler
4

Type-Safe Event Emitter

Advanced

Build a strongly typed event emitter that enforces correct payloads per event name.

Solve in Compiler
1

Counter Component

Beginner

Build a counter with increment, decrement, and reset buttons using useState.

Solve in Compiler
2

Fetch & Display List

Beginner

Fetch a list of posts from an API and display them with a loading skeleton.

Solve in Compiler
3

Custom Hook: useLocalStorage

Intermediate

Write a custom hook that syncs state with localStorage and handles SSR safely.

Solve in Compiler
4

Infinite Scroll

Advanced

Implement infinite scroll using IntersectionObserver and paginated API calls.

Solve in Compiler

Ready to solve?

Open the live compiler and start solving these exercises right now — no install required.

Open Live Compiler