BananaMaster

39.2 Backpack Weight Calculator 2, practice (JS lessons)

If you forgot something โ€” click to go to the lesson.

๐Ÿ“˜ Task: Backpack Weight Calculator 2

Create an application "Backpack Weight Calculator".

Imagine you are going on a hike. Before you leave, you need to pack your backpack.

The user must choose one item from each category, then choose the hike difficulty. After clicking the button, calculate the total weight of the backpack.

๐Ÿฅค Category 1 โ€” Drink

๐ŸŽ Category 2 โ€” Food

๐Ÿ› ๏ธ Category 3 โ€” Tool

๐Ÿงฅ Category 4 โ€” Clothing

๐Ÿ”๏ธ Category 5 โ€” Hike difficulty

๐Ÿ“ Rules:

๐Ÿ“ Messages:

๐Ÿ“ How it works:

๐Ÿงช Example:

The user selected:

Drink: 5 kg
Food: 5 kg
Tool: 7 kg
Clothes: 5 kg

----------------

Total weight: 22 kg

โœ… Perfect backpack!

๐Ÿ“Œ Important: