Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Consoling Meaningful Output | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Consoling Meaningful Output

Aufgabe

Swipe to start coding

In earlier tasks, we worked with raw numbers, but didn't provide any explanation or context for those numbers. It's essential to accompany the numbers with meaningful text so that the user understands what they represent. In this task, you will extend the previous task by adding text to your output.

Write a console.log statement to display following output:

The area of a trapezium is equal to 170 units.

Note

Do not hardcode the value 170 into the output, rather write the arithmetic expression for it based on the given numbers, 13, 21 and 10, so that it's calculated first - the same as how it was done in the previous task. The formula is given below for reference.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 9
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: Consoling Meaningful Output

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

In earlier tasks, we worked with raw numbers, but didn't provide any explanation or context for those numbers. It's essential to accompany the numbers with meaningful text so that the user understands what they represent. In this task, you will extend the previous task by adding text to your output.

Write a console.log statement to display following output:

The area of a trapezium is equal to 170 units.

Note

Do not hardcode the value 170 into the output, rather write the arithmetic expression for it based on the given numbers, 13, 21 and 10, so that it's calculated first - the same as how it was done in the previous task. The formula is given below for reference.

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 9
single

single

some-alt