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

Glissez pour afficher le menu

book
Challenge: Working with Numbers

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 5
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

book
Challenge: Working with Numbers

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 5
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt