セクション 1. 章 27
single
Challenge: 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:
- 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."
- Output the contents of
welcomeMessage.
The expected output is:
Hello, Alice! Welcome to our website.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 27
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください