Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Outputing Multiple Lines | Section
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Outputing Multiple Lines

Aufgabe

Swipe to start coding

Display a short poem in the console. The poem consists of multiple lines, and each line should be displayed individually. Here's an example of what it should look like:

Roses are red,
Violets are blue,
Learning to code
Is fun to do!

Display output in the console, exactly as shown above.

Note

Make sure there are no extra spaces at the end of each line.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Outputing Multiple Lines

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Display a short poem in the console. The poem consists of multiple lines, and each line should be displayed individually. Here's an example of what it should look like:

Roses are red,
Violets are blue,
Learning to code
Is fun to do!

Display output in the console, exactly as shown above.

Note

Make sure there are no extra spaces at the end of each line.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3
single

single

some-alt