Want to learn and master ReScript?

Join Exercism’s ReScript Track for access to 34 exercises with automatic analysis of your code and personal mentoring, all 100% free.

About ReScript

let rec fibonacci = n =>
  switch n {
  | 0 => 0
  | 1 => 1
  | n => fibonacci(n - 1) + fibonacci(n - 2)
  }

let first10 = Array.fromInitializer(~length=10, fibonacci)

Key Features of ReScript


ReScript

OCaml's type system

ReScript brings OCaml's battle-tested powerful type system to JavaScript.

Inferred types

Types are inferred by the ReScript compiler and are guaranteed to be correct.

Functional Programming

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

JavaScript interop

JavaScript interoperability is easy, allowing existing JavaScript packages to be used.

Fast compiler

ReScript 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.

Get mentored the ReScript way

Every language has its own way of doing things. ReScript is no different. Our mentors will help you learn to think like a ReScript developer and how to write idiomatic code in ReScript. Once you've solved an exercise, submit it to our volunteer team, and they'll give you hints, ideas, and feedback on how to make it feel more like what you'd normally see in ReScript - they'll help you discover the things you don't know that you don't know.

Learn more about mentoring

Community-sourced ReScript exercises

The ReScript track on Exercism has 34 exercises to help you write better code.

See all ReScript exercises
ReScript

Get started with the ReScript track

The best part, it’s 100% free for everyone.

Join the ReScript track