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

Scorri per mostrare il menu

book
Challenge: Concatenating Strings

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 14

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

book
Challenge: Concatenating Strings

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 14
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt