Course Content
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 - Concatenating Strings
Task
Swipe to start coding
You're building a welcome message system for a website that greets users by their name. To do this, you need to combine (join) multiple strings to create a full greeting message.
Your task is to:
- Declare & initialize a variable called
username
with"Alice"
; - Declare & initialize another variable called
welcomeMessage
which contains the concatenation of the following three in order:"Hello, "
, username,! Welcome to our website.
; - Output the contents of
welcomeMessage
;
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 14
Task - Concatenating Strings
Task
Swipe to start coding
You're building a welcome message system for a website that greets users by their name. To do this, you need to combine (join) multiple strings to create a full greeting message.
Your task is to:
- Declare & initialize a variable called
username
with"Alice"
; - Declare & initialize another variable called
welcomeMessage
which contains the concatenation of the following three in order:"Hello, "
, username,! Welcome to our website.
; - Output the contents of
welcomeMessage
;
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 14