Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Concatenating Strings | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: 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.

  1. Declare and initialize a variable named username with the value "Alice".
  2. Declare and initialize another variable named welcomeMessage that combines the following parts in this exact order:
    • "Hello, "
    • the variable username
    • "! Welcome to our website."
  3. Print (console.log) the contents of welcomeMessage.

Expected output is:

Hello, Alice! Welcome to our website.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 28
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: 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.

  1. Declare and initialize a variable named username with the value "Alice".
  2. Declare and initialize another variable named welcomeMessage that combines the following parts in this exact order:
    • "Hello, "
    • the variable username
    • "! Welcome to our website."
  3. Print (console.log) the contents of welcomeMessage.

Expected output is:

Hello, Alice! Welcome to our website.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 28
single

single

some-alt