We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Camel Case in JS

By convention in Python, Ruby, and Rust, most programmers use snake_case to write variable names. In JavaScript, the more-popular convention (and the one we use) is camelCase.

Here are some casing examples:

  • camelCase
  • snake_case
  • PascalCase
  • SCREAMING_SNAKE_CASE

Again, prefer camelCase when writing JavaScript code.