Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Concatenating Strings | Section
JavaScript Fundamentals
セクション 1.  27
single

single

bookChallenge: Concatenating Strings

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

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.

Your tasks:

  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. Output the contents of welcomeMessage.

The expected output is:

Hello, Alice! Welcome to our website.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  27
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt