Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Sentence Building | Basic Operations
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").

Tudo estava claro?

Seção 3. Capítulo 10
course content

Conteúdo do Curso

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").

Tudo estava claro?

Seção 3. Capítulo 10
some-alt