Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Variables Naming Convention | JavaScript syntax
Introduction to JavaScript (staging)
course content

Course Content

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

1. Introduction
2. JavaScript syntax
3. Data Types and Variables

bookVariables Naming Convention

Variables naming convention:

  1. Variables in JavaScript are case-sensitive. Case-sensitive means variables are treated differently depending on whether it is in capitals or lower-case text.
12345
let name="Bob William"; console.log(name); let NAME ="Jacob Thomas"; console.log(NAME);
copy

We will get two different outputs because the name and NAME are two different variables.

Task

Suppose there are 50 students in a class and you want to store this in a variable, and for that you need a variable name to store this information. Your task is to choose the suitable identifier for your variable name from these numberOfStudents, student, and std and print the value on the console.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 8
toggle bottom row

bookVariables Naming Convention

Variables naming convention:

  1. Variables in JavaScript are case-sensitive. Case-sensitive means variables are treated differently depending on whether it is in capitals or lower-case text.
12345
let name="Bob William"; console.log(name); let NAME ="Jacob Thomas"; console.log(NAME);
copy

We will get two different outputs because the name and NAME are two different variables.

Task

Suppose there are 50 students in a class and you want to store this in a variable, and for that you need a variable name to store this information. Your task is to choose the suitable identifier for your variable name from these numberOfStudents, student, and std and print the value on the console.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 8
toggle bottom row

bookVariables Naming Convention

Variables naming convention:

  1. Variables in JavaScript are case-sensitive. Case-sensitive means variables are treated differently depending on whether it is in capitals or lower-case text.
12345
let name="Bob William"; console.log(name); let NAME ="Jacob Thomas"; console.log(NAME);
copy

We will get two different outputs because the name and NAME are two different variables.

Task

Suppose there are 50 students in a class and you want to store this in a variable, and for that you need a variable name to store this information. Your task is to choose the suitable identifier for your variable name from these numberOfStudents, student, and std and print the value on the console.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Variables naming convention:

  1. Variables in JavaScript are case-sensitive. Case-sensitive means variables are treated differently depending on whether it is in capitals or lower-case text.
12345
let name="Bob William"; console.log(name); let NAME ="Jacob Thomas"; console.log(NAME);
copy

We will get two different outputs because the name and NAME are two different variables.

Task

Suppose there are 50 students in a class and you want to store this in a variable, and for that you need a variable name to store this information. Your task is to choose the suitable identifier for your variable name from these numberOfStudents, student, and std and print the value on the console.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 8
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt