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
Task - Checking Age Eligibility
Tâche
Swipe to start coding
In this task you will write a small JavaScript program that checks if a person is old enough to drive.
- Create a variable age and assign it a random number (e.g.,
18
). - Write a
console.log
statement which outputs:"The user is old enough to drive: true"
ifage
is 18 or older."The user is old enough to drive: false"
if age is less than 18.
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 2
Task - Checking Age Eligibility
Tâche
Swipe to start coding
In this task you will write a small JavaScript program that checks if a person is old enough to drive.
- Create a variable age and assign it a random number (e.g.,
18
). - Write a
console.log
statement which outputs:"The user is old enough to drive: true"
ifage
is 18 or older."The user is old enough to drive: false"
if age is less than 18.
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 2