Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Sentence Building | Basic Operations
course content

Course Content

Introduction to JavaScript

Challenge: Sentence BuildingChallenge: Sentence Building

Task

Let's build a full sentence using string concatenation.

  1. Create the string "I am hungry!" using the + operator.
  2. 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

Course Content

Introduction to JavaScript

Challenge: Sentence BuildingChallenge: Sentence Building

Task

Let's build a full sentence using string concatenation.

  1. Create the string "I am hungry!" using the + operator.
  2. 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
some-alt