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

Svep för att visa menyn

book
Challenge: Working with Numbers

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 5
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Challenge: Working with Numbers

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 5
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt