Skip to main content

JavaScript Case Sensitivity — exercises and bug fixes

5 hands-on exercises and 5 find-the-bug challenges for the JavaScript Case Sensitivity lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.

Exercises(5)

  1. 1

    Match variable casing

    easy10 min

    Declare userName and read it with the same casing.

  2. 2

    Use correct method casing

    easy10 min

    Uppercase a word using the correctly cased method.

  3. 3

    Distinguish two names

    easy10 min

    value and Value are different — show the lowercase one.

  4. 4

    Use a built-in with exact casing

    easy10 min

    Get the length of "four".

  5. 5

    Keep object keys consistent

    medium10 min

    Read a camelCase property from an object.

Find the bug(5)

  1. 1

    Fix the mismatched variable case

    easy8 min

    The name is declared and read with different casing.

  2. 2

    Fix the method casing

    easy8 min

    touppercase is not a real method.

  3. 3

    Fix the property casing

    easy8 min

    The object key is camelCase but read in lowercase.

  4. 4

    Fix the built-in property case

    easy8 min

    Length with a capital L does not exist.

  5. 5

    Fix the wrong variable picked

    easy8 min

    The uppercase-named variable is read by mistake.

Ready to write the code?

The editor, the automatic checks and the worked solutions open up with an account.

Open the workspace