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

Svep för att visa menyn

book
Challenge: Concatenating Strings

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 14

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Challenge: Concatenating Strings

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 14
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt