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
Match variable casing
easy10 minDeclare userName and read it with the same casing.
- 2
Use correct method casing
easy10 minUppercase a word using the correctly cased method.
- 3
Distinguish two names
easy10 minvalue and Value are different — show the lowercase one.
- 4
Use a built-in with exact casing
easy10 minGet the length of "four".
- 5
Keep object keys consistent
medium10 minRead a camelCase property from an object.
Find the bug(5)
- 1
Fix the mismatched variable case
easy8 minThe name is declared and read with different casing.
- 2
Fix the method casing
easy8 mintouppercase is not a real method.
- 3
Fix the property casing
easy8 minThe object key is camelCase but read in lowercase.
- 4
Fix the built-in property case
easy8 minLength with a capital L does not exist.
- 5
Fix the wrong variable picked
easy8 minThe 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