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
Numbers
Summary
-
Textual Data is always enclosed in single or double quotation marks.
For example:'Hello World'
or"Hello World"
— both represent valid textual data; -
There are two different types of numbers in JavaScript:
- Integers;
- Floating-Point Numbers;
-
Floating-Point Numbers (also known as Floats) are numerical values that have a decimal part.
Examples:1.234
,24.56
,3.1415
, etc; -
Negative numbers can be expressed by adding a minus (
-
) sign before the number. Examples:-27
,-3.14
,-123
, etc; -
Arithmetic Operations can be performed on numbers using the following operators:
+
,-
,*
,/
, and**
; -
The order of arithmetic operations follows the BODMAS or PEMDAS rule;
1. Which of the following is the correct way to represent textual data in JavaScript?
2. Which of the following is NOT a valid number type in JavaScript?
3. Which of the following represents a Floating-Point Number in JavaScript?
4. Which of the following represents a negative number in JavaScript?
5. How would you multiply two numbers in JavaScript?
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 4