Course Content
Introduction to JavaScript
Challenge: Sentence Building
Task
Let's make a complete sentence with a string concatenation!
- Create the string
"I want to eat"
via the+
operator! - Add words with spaces (except the first one) using the (
+=
) operator. - Add an exclamation mark (
!
) at the end.
The output should be:
Hint
Add words with space (for example
" want"
, " eat"
).
Section 3.
Chapter 10