SlaveCode LogoSlaveCode.
Academy
RoadmapProblemsSystem Design
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
SlaveCode LogoSlaveCode.

Standardize your coding journey. From basic academy courses and guided roadmaps to advanced system design, company interview prep, and real-time coding arenas. The all-in-one platform to master algorithms and prove your engineering excellence.

Officially Featured by Judge0

Learn & Practice

  • Academy
  • Problems
  • Roadmap
  • System Design
  • Companies

Compete & Tools

  • Arena
  • Contests
  • Compilers

Legal & Support

  • Report an Issue
  • Privacy Policy
  • Terms of Service
  • Contact Us

© 2026 SlaveCode. All rights reserved.

JavaScript

JavaScript

JavaScript is a scripting language, primarily used for creating dynamic websites and programming web servers. It's a very popular language, and supports a variety of programming paradigms.

Master JavaScript with
Interactive Learning

Elevate your JavaScript skills through 168 curated exercises across 30 core concepts. Master problem-solving with a structured learning path designed for modern developers.

JavaScript

About JavaScript

JavaScript is a programming language that allows web pages to be dynamic. It is an interpreted language, which means that it doesn't need to be compiled: instead the interpreter (such as a web browser) will parse the code and turn it into code that their machine can run - suitable for creating dynamic websites that can run on any browser on any computer!

JavaScript is not only used in the browser. JavaScript runtimes, such as Node.js and Deno allow you to write, launch and serve requests on webservers. Other frameworks, such as Electron use JavaScript to write cross-platform applications for Windows, Linux and macOS. Mobile app development is also a possibility, utilising React Native, Ionic and various others, with Expo now allowing to target Android, iOS and the web, all at once.

ECMAScript is the standard that defines JavaScript.

"ECMAScript has grown to be one of the world’s most widely used general-purpose programming languages. It is best known as the language embedded in web browsers but has also been widely adopted for server and embedded applications." — ECMA International Language Specification

Starting with the 6th edition (commonly known as ES2015 or ES6) in 2015, a new edition of the standard will be released each year. The 6th edition was a major update that brought many enhancements over ES5, including notably template strings, expressive arrow function syntax, and cleaner syntax for defining classes.

But because new syntax and features are coming to JavaScript each year, support for these changes is often incomplete in current browsers and the latest Node.js. This doesn't mean we can't use it. Tools such as Babel offer transpilation for most features, allowing us to write as if it's the future.

Note: This track supports the latest ECMAScript syntax via Babel and the @babel/preset-env plugin, and new experimental features are enabled with each update of that plugin, matching the release of the specifications. It automatically adapts to your local Node.js installation. This means you don't need to worry about what is and isn't supported.


There are a small number of browsers that do not include a JavaScript runtime, or that have disabled JavaScript execution by default.

Key Features of JavaScript

Runs almost everywhere

Build web-pages, write backend, create database scripts, make mobile apps, design CLI-s, and more.

Use any programming style

Use prototype-based, object-oriented, functional, or declarative programming styles, and more.

No types required

Dynamically and weakly typed by default, gain typed confidence using Flow, JSDoc, or TypeScript.

Concurrency is safe

Async/await, dedicated workers, or state sync in shared workers. No deadlocks or race conditions.

Largest package registry

No need to reinvent the wheel. Build on top of > 1.3 million packages (April, 2020).

Designed by a committee

Frequent updates, following ECMAScript, a general purpose, cross platform, vendor-neutral standard.

Track icon

Runs almost everywhere

Build web-pages, write backend, create database scripts, make mobile apps, design CLI-s, and more.

Use any programming style

Use prototype-based, object-oriented, functional, or declarative programming styles, and more.

No types required

Dynamically and weakly typed by default, gain typed confidence using Flow, JSDoc, or TypeScript.

Concurrency is safe

Async/await, dedicated workers, or state sync in shared workers. No deadlocks or race conditions.

Largest package registry

No need to reinvent the wheel. Build on top of > 1.3 million packages (April, 2020).

Designed by a committee

Frequent updates, following ECMAScript, a general purpose, cross platform, vendor-neutral standard.

A taste of JavaScript concepts you'll cover

Ba

Basics

Bo

Booleans

Nu

Numbers

Ar

Arithmetic Operators

St

Strings

Ar

Arrays

Co

Comparison

Co

Conditionals

In

Increment/Decrement

Fo

For Loops

Wh

While Loops

Sw

Switch Statement

Ob

Objects

Nu

Null and Undefined

Fu

Functions

Ty

Type Conversion

Cl

Closures

Ar

Array Destructuring

Ob

Object Destructuring

Ca

Callbacks

Ra

Randomness

Te

Ternary Operator

Te

Template Strings

Re

Rest and Spread

Ar

Arrow Functions

Ar

Array Analysis

Pr

Prototypes & Classes

Ar

Array Transformations

Ar

Array Loops

Re

Recursion

Se

Sets

Re

Regular Expressions

Er

Errors

In

Inheritance

Da

Date and Time

Pr

Promises

Ty

Type Checking

Dive into JavaScript practice challenges

Hello World
Hello World
Level 1

SlaveCode's classic introductory exercise. Just say "Hello, World!".

Two Fer
Two Fer
Level 1

Create a sentence of the form "One for X, one for me.".

Resistor Color
Resistor Color
Level 1

Convert a resistor band's color to its numeric representation.

Resistor Color Duo
Resistor Color Duo
Level 2

Convert color codes, as used on resistors, to a numeric value.

Gigasecond
Gigasecond
Level 1

Given a moment, determine the moment that would be after a gigasecond has passed.

Line Up
Line Up
Level 1

Help lining up customers at Yaʻqūb's Deli.