Contenu du cours
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
Types of Data
Summary
-
There are two types of numbers in JavaScript:
- Integers: Discrete numbers like
1
,2
,3
,-1
,-2
,-3
, etc. - Floats (Floating-Point Numbers): Numerical values that have a decimal in them (e.g.,
3.14
,-0.5
).
- Integers: Discrete numbers like
-
Booleans are values that can be either
true
orfalse
. -
Null (
null
) values represent the intentional absence of data.
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 11