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 - Output Multiple Lines
Tâche
Swipe to start coding
Your task is to display a short poem in the console. The poem consists of multiple lines, and each line should be displayed individually. Here’s an example of what it should look like:
python
Display output in the console, exactly as shown above.
Note
Make sure there are no extra spaces at the end of each line.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 3
Task - Output Multiple Lines
Tâche
Swipe to start coding
Your task is to display a short poem in the console. The poem consists of multiple lines, and each line should be displayed individually. Here’s an example of what it should look like:
python
Display output in the console, exactly as shown above.
Note
Make sure there are no extra spaces at the end of each line.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 3