Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Consoling Meaningful Output | Getting Started
Introduction to JavaScript

Sveip for å vise menyen

book
Challenge: Consoling Meaningful Output

Oppgave

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:

text

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øsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 9

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

book
Challenge: Consoling Meaningful Output

Oppgave

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:

text

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øsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 9
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt