Challenge: Concatenating Strings
Tehtävä
Swipe to start coding
You're building a welcome message system for a website that greets users by their name. To do this, you'll combine multiple strings into one complete message.
- Declare and initialize a variable named
usernamewith the value"Alice". - Declare and initialize another variable named
welcomeMessagethat combines the following parts in this exact order:"Hello, "- the variable
username "! Welcome to our website."
- Print (
console.log) the contents ofwelcomeMessage.
Expected output is:
Hello, Alice! Welcome to our website.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 28
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 1.33
Challenge: Concatenating Strings
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
You're building a welcome message system for a website that greets users by their name. To do this, you'll combine multiple strings into one complete message.
- Declare and initialize a variable named
usernamewith the value"Alice". - Declare and initialize another variable named
welcomeMessagethat combines the following parts in this exact order:"Hello, "- the variable
username "! Welcome to our website."
- Print (
console.log) the contents ofwelcomeMessage.
Expected output is:
Hello, Alice! Welcome to our website.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 28
single