Section 3. Chapter 10
single
Challenge: Build Sentences with JavaScript
Swipe to show menu
Task
Swipe to start coding
Let's build a full sentence using string concatenation.
- Create the string
"I am hungry!"using the+operator. - Add words with spaces (except the first one) using the
+=operator.
The output should be:
I am hungry!
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 10
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat