Challenge: Concatenating Strings
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 28
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 1.33
Challenge: Concatenating Strings
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 28
single