Courses /
Introduction to JavaScript
Challenge: Sentence Building
Task
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:
Add words with spaces (e.g., " am"
, " hungry"
).
Everything was clear?
Section 3. Chapter 10
Course Content
Introduction to JavaScript
4. Conditional Statements
Introduction to JavaScript
Challenge: Sentence Building
Task
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:
Add words with spaces (e.g., " am"
, " hungry"
).
Everything was clear?
Section 3. Chapter 10