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
single

single

Ask AI

expand

Ask AI

ChatGPT

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

close

Awesome!

Completion rate improved to 1.33

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!

close

Awesome!

Completion rate improved to 1.33

Swipe to show menu

some-alt