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.

Learn & Practice

  • Academy
  • Problems
  • Roadmap
  • System Design

Compete & Tools

  • Arena
  • Contests
  • Compilers

Legal & Support

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

© 2026 SlaveCode. All rights reserved.

ReasonML

ReasonML

ReasonML is a strongly typed functional language which compiles to both Javascript and native.

Master ReasonML with
Interactive Learning

Elevate your ReasonML skills through 32 curated exercises across 0 core concepts. Master problem-solving with a structured learning path designed for modern developers.

ReasonML

About ReasonML

Reason is a syntax and toolchain geared towards Javascript programmers, based on the functional language OCaml

Being statically typed, it is likely to be safer than Javascript, but has powerful type inference which means type annotations do not get in your way.

The Exercism exercises will compile directly to JS, but Reason can be compiled via the OCaml toolchain to native code, IoS, Android, and even microcontrollers

Key Features of ReasonML

OCaml's type system

ReasonML brings OCaml's battle-tested powerful type system to Javascript.

Inferred types

No need to specify types, types are inferred by the compiler and are guaranteed to be correct.

Functional Programming

Like OCaml, ReasonML is a functional programming language with pattern matching, variants and more.

Easy javascript interop

JavaScript interop is easy allowing advatange of existing javascript packages and ecosystem.

Fast compiler

ReasonML compilation times are super fast which means fast iteration cycles.

Refactor with ease

Compiler guides you through all places that need to be fixed during refactor until it just works.

Track icon

OCaml's type system

ReasonML brings OCaml's battle-tested powerful type system to Javascript.

Inferred types

No need to specify types, types are inferred by the compiler and are guaranteed to be correct.

Functional Programming

Like OCaml, ReasonML is a functional programming language with pattern matching, variants and more.

Easy javascript interop

JavaScript interop is easy allowing advatange of existing javascript packages and ecosystem.

Fast compiler

ReasonML compilation times are super fast which means fast iteration cycles.

Refactor with ease

Compiler guides you through all places that need to be fixed during refactor until it just works.

Dive into ReasonML practice challenges

Hello World
Hello World
Level 1

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

Leap
Leap
Level 1

Determine whether a given year is a leap year.

Bob
Bob
Level 2

Bob is a lackadaisical teenager. In conversation, his responses are very limited.

Eliud's Eggs
Eliud's Eggs
Level 2

Help Eliud count the number of eggs in her chicken coop by counting the number of 1 bits in a binary representation.

RNA Transcription
RNA Transcription
Level 2

Given a DNA strand, return its RNA complement.

Word Count
Word Count
Level 2

Given a phrase, count the occurrences of each word in that phrase.