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

Contenido del Curso

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

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

bookJavaScript Syntax

JavaScript Syntax:

JavaScript Syntax is a set of rules which defines that our JavaScript program has the correct structure or not.

In the program we usually perform the following things:

  • Declaration of variables
  • Assignment of values.
  • Computation of values by using operators
12345
//declaration of variables const firstNumber = 100; const secondNumber = 5; const thirdNumber = firstNumber + secondNumber; console.log(thirdNumber);
copy

Note:

To be an expert JavaScript developer, we should have a clear understanding of values, variables, operators, and their syntaxes.

JavaScript values :

A value is the representation of some entity that can be executed by a program.

In JavaScript there are two types of values:

  • Fixed values are known as literals.
  • Variables values are known as variables.

JavaScript literals:

JavaScript literals are values that cannot be changed, you do not need any type of keyword to write literals.

JavaScript literals syntax:

A JavaScript literal can be a numeric value, string, floating-point value, a boolean value, or even an object. In simple words, any value is literal.

1234567891011121314151617
//numerical literal const firstNumber= 1123; const secondNumber = 1334; console.log(firstNumber); console.log(secondNumber); // Boolean literal const isSunny= true; console.log(isSunny); //string literal const greeting = "hello-world"; console.log(greeting); //array literal const numberList =[1,2,3,4,5,6]; console.log(numberList);
copy

Note: The complete detail of each literal will be discussed later in the course.

Tarea

Assign the numerical literal 1000 to the variable numberOfStudents and show the value on the console.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 1
toggle bottom row

bookJavaScript Syntax

JavaScript Syntax:

JavaScript Syntax is a set of rules which defines that our JavaScript program has the correct structure or not.

In the program we usually perform the following things:

  • Declaration of variables
  • Assignment of values.
  • Computation of values by using operators
12345
//declaration of variables const firstNumber = 100; const secondNumber = 5; const thirdNumber = firstNumber + secondNumber; console.log(thirdNumber);
copy

Note:

To be an expert JavaScript developer, we should have a clear understanding of values, variables, operators, and their syntaxes.

JavaScript values :

A value is the representation of some entity that can be executed by a program.

In JavaScript there are two types of values:

  • Fixed values are known as literals.
  • Variables values are known as variables.

JavaScript literals:

JavaScript literals are values that cannot be changed, you do not need any type of keyword to write literals.

JavaScript literals syntax:

A JavaScript literal can be a numeric value, string, floating-point value, a boolean value, or even an object. In simple words, any value is literal.

1234567891011121314151617
//numerical literal const firstNumber= 1123; const secondNumber = 1334; console.log(firstNumber); console.log(secondNumber); // Boolean literal const isSunny= true; console.log(isSunny); //string literal const greeting = "hello-world"; console.log(greeting); //array literal const numberList =[1,2,3,4,5,6]; console.log(numberList);
copy

Note: The complete detail of each literal will be discussed later in the course.

Tarea

Assign the numerical literal 1000 to the variable numberOfStudents and show the value on the console.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 1
toggle bottom row

bookJavaScript Syntax

JavaScript Syntax:

JavaScript Syntax is a set of rules which defines that our JavaScript program has the correct structure or not.

In the program we usually perform the following things:

  • Declaration of variables
  • Assignment of values.
  • Computation of values by using operators
12345
//declaration of variables const firstNumber = 100; const secondNumber = 5; const thirdNumber = firstNumber + secondNumber; console.log(thirdNumber);
copy

Note:

To be an expert JavaScript developer, we should have a clear understanding of values, variables, operators, and their syntaxes.

JavaScript values :

A value is the representation of some entity that can be executed by a program.

In JavaScript there are two types of values:

  • Fixed values are known as literals.
  • Variables values are known as variables.

JavaScript literals:

JavaScript literals are values that cannot be changed, you do not need any type of keyword to write literals.

JavaScript literals syntax:

A JavaScript literal can be a numeric value, string, floating-point value, a boolean value, or even an object. In simple words, any value is literal.

1234567891011121314151617
//numerical literal const firstNumber= 1123; const secondNumber = 1334; console.log(firstNumber); console.log(secondNumber); // Boolean literal const isSunny= true; console.log(isSunny); //string literal const greeting = "hello-world"; console.log(greeting); //array literal const numberList =[1,2,3,4,5,6]; console.log(numberList);
copy

Note: The complete detail of each literal will be discussed later in the course.

Tarea

Assign the numerical literal 1000 to the variable numberOfStudents and show the value on the console.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

JavaScript Syntax:

JavaScript Syntax is a set of rules which defines that our JavaScript program has the correct structure or not.

In the program we usually perform the following things:

  • Declaration of variables
  • Assignment of values.
  • Computation of values by using operators
12345
//declaration of variables const firstNumber = 100; const secondNumber = 5; const thirdNumber = firstNumber + secondNumber; console.log(thirdNumber);
copy

Note:

To be an expert JavaScript developer, we should have a clear understanding of values, variables, operators, and their syntaxes.

JavaScript values :

A value is the representation of some entity that can be executed by a program.

In JavaScript there are two types of values:

  • Fixed values are known as literals.
  • Variables values are known as variables.

JavaScript literals:

JavaScript literals are values that cannot be changed, you do not need any type of keyword to write literals.

JavaScript literals syntax:

A JavaScript literal can be a numeric value, string, floating-point value, a boolean value, or even an object. In simple words, any value is literal.

1234567891011121314151617
//numerical literal const firstNumber= 1123; const secondNumber = 1334; console.log(firstNumber); console.log(secondNumber); // Boolean literal const isSunny= true; console.log(isSunny); //string literal const greeting = "hello-world"; console.log(greeting); //array literal const numberList =[1,2,3,4,5,6]; console.log(numberList);
copy

Note: The complete detail of each literal will be discussed later in the course.

Tarea

Assign the numerical literal 1000 to the variable numberOfStudents and show the value on the console.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 2. Capítulo 1
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt