JavaScript Examples Library

50 examples · all runnable online, source viewable, free to download

Application-level JavaScript examples — more than syntax demos: complete, ready-to-use pieces with polished UI and combined fundamentals. Preview live, copy the source, or download every example. Pair it with the JavaScript tutorial and reference manual for systematic learning.

Category:
Tip Calculator
Tip CalculatorTip Calculator: a runnable JavaScript Calculators demo for practicing numeric calculation and form input. Edit the code and watch the result update.🌱 Beginner#numbers#math#forms
BMI Calculator
BMI CalculatorBMI Calculator: a runnable JavaScript Calculators demo for practicing numeric calculation and form input. Edit the code and watch the result update.🌱 Beginner#math#health#forms
Loan Payment Calculator
Loan Payment CalculatorLoan Payment Calculator: a runnable JavaScript Calculators demo for practicing numeric calculation and form input. Edit the code and watch the result update.🌱 Beginner#math#finance#forms
Unit Converter
Unit ConverterUnit Converter: a runnable JavaScript Calculators demo for practicing numeric calculation and form input. Edit the code and watch the result update.🌱 Beginner#math#units#forms
Age Calculator
Age CalculatorAge Calculator: a runnable JavaScript Calculators demo for practicing numeric calculation and form input. Edit the code and watch the result update.🌱 Beginner#dates#math#forms
Currency Converter
Currency ConverterCurrency Converter: a runnable JavaScript Calculators demo for practicing numeric calculation and form input. Edit the code and watch the result update.🌱 Beginner#math#finance#forms
Live Form Validation
Live Form ValidationLive Form Validation: a runnable JavaScript Forms demo for practicing form validation and user input. Edit the code and watch the result update.🌱 Beginner#forms#validation#events
Password Strength Meter
Password Strength MeterPassword Strength Meter: a runnable JavaScript Forms demo for practicing form validation and user input. Edit the code and watch the result update.🌱 Beginner#security#strings#forms
Multi-step Signup
Multi-step SignupMulti-step Signup: a runnable JavaScript Forms demo for practicing form validation and user input. Edit the code and watch the result update.🌱 Beginner#forms#wizard#state
Newsletter Signup
Newsletter SignupNewsletter Signup: a runnable JavaScript Forms demo for practicing form validation and user input. Edit the code and watch the result update.🌱 Beginner#forms#email#validation
Image Upload Preview
Image Upload PreviewImage Upload Preview: a runnable JavaScript Forms demo for practicing form validation and user input. Edit the code and watch the result update.🌱 Beginner#files#forms#preview
Tabbed Content Switcher
Tabbed Content SwitcherTabs: a runnable JavaScript UI Components demo for practicing DOM updates and interaction state. Edit the code and watch the result update.🌱 Beginner#dom#events#ui
Accordion FAQ Panel
Accordion FAQ PanelAccordion: a runnable JavaScript UI Components demo for practicing DOM updates and interaction state. Edit the code and watch the result update.🌱 Beginner#dom#events#ui
Modal Dialog
Modal DialogModal Dialog: a runnable JavaScript UI Components demo for practicing DOM updates and interaction state. Edit the code and watch the result update.🌱 Beginner#dom#dialog#ui
Toast Notifications
Toast NotificationsToast Notifications: a runnable JavaScript UI Components demo for practicing DOM updates and interaction state. Edit the code and watch the result update.🌱 Beginner#dom#feedback#ui
Theme Switcher
Theme SwitcherTheme Switcher: a runnable JavaScript UI Components demo for practicing DOM updates and interaction state. Edit the code and watch the result update.🌱 Beginner#css#dom#storage
Star Rating Input
Star Rating InputStar Rating: a runnable JavaScript UI Components demo for practicing DOM updates and interaction state. Edit the code and watch the result update.🌱 Beginner#dom#rating#forms
Live Search Filter
Live Search FilterLive Search Filter: a runnable JavaScript Data & Lists demo for practicing array methods and list rendering. Edit the code and watch the result update.⚡ Intermediate#arrays#search#dom
Sortable Table
Sortable TableSortable Table: a runnable JavaScript Data & Lists demo for practicing array methods and list rendering. Edit the code and watch the result update.⚡ Intermediate#arrays#sort#table
Pagination Controls
Pagination ControlsPagination: a runnable JavaScript Data & Lists demo for practicing array methods and list rendering. Edit the code and watch the result update.⚡ Intermediate#arrays#pagination#ui
To-Do List App
To-Do List AppTodo List: a runnable JavaScript Data & Lists demo for practicing array methods and list rendering. Edit the code and watch the result update.⚡ Intermediate#arrays#crud#dom
Notes Manager App
Notes Manager AppNotes App: a runnable JavaScript Data & Lists demo for practicing array methods and list rendering. Edit the code and watch the result update.⚡ Intermediate#arrays#crud#text
Contact List
Contact ListContact List: a runnable JavaScript Data & Lists demo for practicing array methods and list rendering. Edit the code and watch the result update.⚡ Intermediate#arrays#search#cards
Countdown Timer
Countdown TimerCountdown Timer: a runnable JavaScript Time Tools demo for practicing dates, timers and state updates. Edit the code and watch the result update.⚡ Intermediate#date#timer#setinterval
Stopwatch Timer
Stopwatch TimerStopwatch: a runnable JavaScript Time Tools demo for practicing dates, timers and state updates. Edit the code and watch the result update.⚡ Intermediate#date#timer#setinterval
Pomodoro Timer
Pomodoro TimerPomodoro Timer: a runnable JavaScript Time Tools demo for practicing dates, timers and state updates. Edit the code and watch the result update.⚡ Intermediate#timer#productivity#audio
Digital Clock
Digital ClockDigital Clock: a runnable JavaScript Time Tools demo for practicing dates, timers and state updates. Edit the code and watch the result update.⚡ Intermediate#date#setinterval#ui
Monthly Calendar View
Monthly Calendar ViewCalendar: a runnable JavaScript Time Tools demo for practicing dates, timers and state updates. Edit the code and watch the result update.⚡ Intermediate#date#calendar#grid
JavaScript Quiz App
JavaScript Quiz AppQuiz App: a runnable JavaScript Mini Games demo for practicing conditions, randomness and game loops. Edit the code and watch the result update.⚡ Intermediate#arrays#score#state
Flashcard Study App
Flashcard Study AppFlashcards: a runnable JavaScript Mini Games demo for practicing conditions, randomness and game loops. Edit the code and watch the result update.⚡ Intermediate#arrays#flip#study
Memory Matching Game
Memory Matching GameMemory Game: a runnable JavaScript Mini Games demo for practicing conditions, randomness and game loops. Edit the code and watch the result update.⚡ Intermediate#arrays#random#game
Tic-Tac-Toe Game
Tic-Tac-Toe GameTic-Tac-Toe: a runnable JavaScript Mini Games demo for practicing conditions, randomness and game loops. Edit the code and watch the result update.⚡ Intermediate#arrays#win#game
Number Guessing
Number GuessingNumber Guessing: a runnable JavaScript Mini Games demo for practicing conditions, randomness and game loops. Edit the code and watch the result update.⚡ Intermediate#random#loop#game
Image Lightbox
Image LightboxImage Lightbox: a runnable JavaScript Media & Visual demo for practicing CSS visuals and DOM switching. Edit the code and watch the result update.⚡ Intermediate#dom#overlay#media
Image Carousel Slider
Image Carousel SliderCarousel: a runnable JavaScript Media & Visual demo for practicing CSS visuals and DOM switching. Edit the code and watch the result update.⚡ Intermediate#dom#slides#media
Color Palette Generator
Color Palette GeneratorColor Palette Generator: a runnable JavaScript Media & Visual demo for practicing CSS visuals and DOM switching. Edit the code and watch the result update.⚡ Intermediate#random#color#css
Gradient Generator
Gradient GeneratorGradient Generator: a runnable JavaScript Media & Visual demo for practicing CSS visuals and DOM switching. Edit the code and watch the result update.⚡ Intermediate#css#color#generator
Word Counter
Word CounterWord Counter: a runnable JavaScript Text Tools demo for practicing string processing and live preview. Edit the code and watch the result update.⚡ Intermediate#strings#textarea#stats
Markdown Preview
Markdown PreviewMarkdown Preview: a runnable JavaScript Text Tools demo for practicing string processing and live preview. Edit the code and watch the result update.⚡ Intermediate#strings#regex#preview
Random Password
Random PasswordRandom Password: a runnable JavaScript Text Tools demo for practicing string processing and live preview. Edit the code and watch the result update.⚡ Intermediate#random#security#strings
Case Converter
Case ConverterCase Converter: a runnable JavaScript Text Tools demo for practicing string processing and live preview. Edit the code and watch the result update.⚡ Intermediate#strings#uppercase#textarea
Expense Tracker
Expense TrackerExpense Tracker: a runnable JavaScript Productivity demo for practicing local data organization and UI updates. Edit the code and watch the result update.⚡ Intermediate#arrays#money#table
Habit Tracker
Habit TrackerHabit Tracker: a runnable JavaScript Productivity demo for practicing local data organization and UI updates. Edit the code and watch the result update.⚡ Intermediate#arrays#check#streak
Kanban Board
Kanban BoardKanban Board: a runnable JavaScript Productivity demo for practicing local data organization and UI updates. Edit the code and watch the result update.⚡ Intermediate#arrays#drag#columns
Bookmark Manager
Bookmark ManagerBookmark Manager: a runnable JavaScript Productivity demo for practicing local data organization and UI updates. Edit the code and watch the result update.⚡ Intermediate#arrays#crud#links
Shopping Cart
Shopping CartShopping Cart: a runnable JavaScript Shopping & E-commerce demo for practicing arrays, objects and price calculations. Edit the code and watch the result update.⚡ Intermediate#arrays#price#cart
Product Filter
Product FilterProduct Filter: a runnable JavaScript Shopping & E-commerce demo for practicing arrays, objects and price calculations. Edit the code and watch the result update.⚡ Intermediate#arrays#filter#shop
Recipe Filter
Recipe FilterRecipe Filter: a runnable JavaScript Shopping & E-commerce demo for practicing arrays, objects and price calculations. Edit the code and watch the result update.⚡ Intermediate#arrays#filter#food
Weather Dashboard
Weather DashboardWeather Dashboard: a runnable JavaScript Async & API demo for practicing Promises, fetch and async UI. Edit the code and watch the result update.⚡ Intermediate#async#fetch#ui
Chat Interface UI
Chat Interface UIChat UI: a runnable JavaScript Async & API demo for practicing Promises, fetch and async UI. Edit the code and watch the result update.⚡ Intermediate#async#messages#ui
No examples at this difficulty in this category

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏