Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Concatenating Strings | Manipulating Data
Introduction to JavaScript

Swipe to show menu

book
Challenge: 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.

  • 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

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 14
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Challenge: 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.

  • 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

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 14
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt