Conteúdo do Curso
Introduction to JavaScript
Introduction to JavaScript
1. Getting Started
Hello WorldTask - Show some OutputTask - Output Multiple LinesNumbersTask - Working with NumbersTask - Calculate the Speed of a CarTask - Calculate Area of a TrapeziumOutputting Multiple ValuesTask - Meaningful OutputCommentsTask - Adding a commentMulti-Line CommentsTask - Commenting out CodeTask - Coffee Shop SalesWhat is JavaScript anyway?
2. Manipulating Data
Storing DataTask - Declaring a VariableTask - Accessing Data From a VariableTask - Fixing Variable NamesTask - Reassigning a VariableConstantsTask - Declaring & Using ConstantsPerforming Arithmetic On VariablesTask - Making a Salary CalculatorTask - Adjusting Salary with a BonusTypes of DataTask - Declare a Boolean ValueHow different Data Types InteractTask - Concatenating StringsTask - User Profile & Activity Details
3. Conditional Statements
Comparison Operators
Comparison Operators, as expressed by the name, are operators that can be used for comparing data.
For example, we can use the equals to (==
) operator to check if two values are equal. This outputs true
or false
based on whether the two values are equal or not.
let a = 5; let b = 10; console.log(a == b);
The expression a == b
is known as a boolean expression because it evaluates into a boolean value (true
or false
).
There's a similar operator known as the not equals to (!==
) operator. It simply returns true
if the two values are not equal:
let a = 5; let b = 10; console.log(a != b);
There are some other operators which can be used for comparing values:
The video demonstrates the usage of these operators in detail:
1. What will be the output of the following code?
2. Which of the following operators checks if two values are equal?
3. What is the difference between =
and ==
in JavaScript?
4. What will be the output of this code?
5. Which of the following statements will return true
?
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 1