Join Exercism’s ReScript Track for access to 34 exercises with automatic analysis of your code and personal mentoring, all 100% free.
let rec fibonacci = n =>
switch n {
| 0 => 0
| 1 => 1
| n => fibonacci(n - 1) + fibonacci(n - 2)
}
let first10 = Array.fromInitializer(~length=10, fibonacci)
Get better at programming through fun, rewarding coding exercises that test your understanding of concepts with Exercism.
Help Eliud count the number of eggs in her chicken coop by counting the number of 1 bits in a binary representation.
Implement run-length encoding and decoding.
Implement the `keep` and `discard` operation on collections.
ReScript brings OCaml's battle-tested powerful type system to JavaScript.
Types are inferred by the ReScript compiler and are guaranteed to be correct.
Like OCaml, ReScript is a functional programming language with pattern matching, variants and more.
JavaScript interoperability is easy, allowing existing JavaScript packages to be used.
ReScript compilation times are super fast which means fast iteration cycles.
Compiler guides you through all places that need to be fixed during refactor until it just works.
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 mentoringThe ReScript track on Exercism has 34 exercises to help you write better code.
See all ReScript exercisesThe best part, it’s 100% free for everyone.
Join the ReScript track