camelCase & snake_case Typing Practice
Part of the Programmers track.
The two dominant variable-naming conventions, practiced back to back so your fingers get comfortable with both capitalization and underscore styles.
Type the drill below at a pace where you can stay accurate. Reaching the lesson target shown below marks this lesson complete and shows a link to the next lesson in the track.
This is lesson 2 of 8 in the Programmers track. Your attempts, best WPM, and completion status are saved in this browser when local storage is available.
Type spaces for indentation and Enter for line breaks; Tab moves focus. For varied snippets, open the code typing tool. To plan a session, read the code typing practice routine.
Practice focus
Switch between internal capitals and underscore separators.
- Read myVariableName and my_variable_name as two different sequences.
- Release Shift after an internal capital; use it deliberately for the all-capital constants at the end.
Review your attempt
If only the underscored version breaks your rhythm, isolate the letter-underscore-letter transition.
Try the follow-up exercisePractice this lesson
Click the passage and copy the text, including spaces. Use Enter for line breaks and Backspace for corrections; Tab moves focus. The attempt ends when you reach the end. Finish the passage with at least 95% accuracy. Speed is recorded separately and cannot bypass accuracy.
Enable JavaScript for timed practice and saved progress.
Read the lesson passage
Check unfamiliar keys before starting. You can also copy this passage into a plain-text editor for untimed practice; timed feedback below requires JavaScript.
myVariableName userAccountBalance isLoggedIn calculateTotalPrice my_variable_name user_account_balance is_logged_in calculate_total_price getUserById get_user_by_id MAX_RETRY_COUNT API_BASE_URL
Your earlier attempts and best speed are retained. Finish a new attempt to confirm the current accuracy target.
Something unclear in this lesson? Share the page and the step that needs work.