# Naming Conventions (JavaScript)

JavaScript predominantly uses 2 naming conventions: camelCase and PascalCase.

## What is the JavaScript standard for **naming conventions**?

JavaScript predominantly uses 2 naming 
conventions: **camelCase** and **PascalCase**.

Variables, functions and input parameters are 
all declared using **camelCase**
```javascript
let firstName;
let age;
function calculateAge(birthDate){...}
```

Classes are usually defined using **PascalCase**
```javascript
class Person {
    name;
    age;

    calculateAge(birthDate){...}
}
```

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/naming-conventions-javascript
