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

Stryg for at vise menuen

book
Challenge: Working with Numbers

Opgave

Swipe to start coding

Imagine a situation where a store launches a promotion: when purchasing 5 items at $17 each, the 6th item is free.

A total of 27 people participated in the promotion. Using numbers in JavaScript and multiplication, calculate the total revenue from this promotion and output it to the console.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
Vi beklager, at noget gik galt. Hvad skete der?

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

book
Challenge: Working with Numbers

Opgave

Swipe to start coding

Imagine a situation where a store launches a promotion: when purchasing 5 items at $17 each, the 6th item is free.

A total of 27 people participated in the promotion. Using numbers in JavaScript and multiplication, calculate the total revenue from this promotion and output it to the console.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt