Variables Naming Convention
Variables naming convention:
- Variables in JavaScript are case-sensitive. Case-sensitive means variables are treated differently depending on whether it is in capitals or lower-case text.
12345let name="Bob William"; console.log(name); let NAME ="Jacob Thomas"; console.log(NAME);
We will get two different outputs because the name
and NAME
are two different variables.
Swipe to start coding
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.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Awesome!
Completion rate improved to 2
Variables Naming Convention
Desliza para mostrar el menú
Variables naming convention:
- Variables in JavaScript are case-sensitive. Case-sensitive means variables are treated differently depending on whether it is in capitals or lower-case text.
12345let name="Bob William"; console.log(name); let NAME ="Jacob Thomas"; console.log(NAME);
We will get two different outputs because the name
and NAME
are two different variables.
Swipe to start coding
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.
Solución
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 2single