quest

Sign in to start training

quest keeps your progress, streaks, and scores tied to your account — so you can pick up on any device.

Synced everywhere. Progress follows you across laptop and phone.
Streaks & stats. See your daily run and every score over time.
Your profile. A name and avatar for the work you do here.

We only use Google to sign you in and sync progress. No posting, no contacts — ever.

Core Beginner

00  Variables

Rust bindings are immutable unless you say otherwise, and constants carry an explicit type.

Step 1 / 3

Make total mutable so with_bonus can add the bonus and return the new score.

Hints
  • let is immutable by default -- add mut to reassign.
00_variables.rs
Reset to starterCompiled in a sandbox; hidden checks must pass.
Reveal solution
fn with_bonus(score: i32, bonus: i32) -> i32 {
    let mut total = score;
    total = total + bonus;
    total
}