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

Pyyhkäise näyttääksesi valikon

book
Challenge: Consoling Meaningful Output

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 9
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?

Kysy tekoälyä

expand
ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

book
Challenge: Consoling Meaningful Output

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 9
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt