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

Scorri per mostrare il menu

book
Challenge: Working with Numbers

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 5

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

book
Challenge: Working with Numbers

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 5
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt