course content

Course Content

Introduction to JavaScript

Challenge: Sentence BuildingChallenge: Sentence Building

Task

Let's make a complete sentence with a string concatenation!

  1. Create the string "I want to eat" via the + operator!
  2. Add words with spaces (except the first one) using the (+=) operator.
  3. Add an exclamation mark (!) at the end.

The output should be:

Hint
Add words with space (for example " want", " eat").

Section 3.

Chapter 10