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

bookChallenge: Concatenating Strings

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 28
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Concatenating Strings

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 28
single

single

some-alt