scrimba
Introduction to JavaScript
Challenge: Switch statements
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: Switch statements
AboutCommentsNotes
Challenge: Switch statements
Expand for more info
index.js
run
preview
console
// Challenge: Customer Upgrade

/*
1. Our business wants to convince users to upgrade their accounts.
2. Check a user's account type (switch) of 'shopper', 'super shopper', & 'guest'.
3. If a user is a 'guest' ask them if they want to upgrade to a 'shopper'.
4. If a user is a 'shopper' ask if they want to upgrade to a 'super shopper'
5. If a user is a 'super shopper' tell them they are the best!
6. If we don't know user's status they are a guest.
*/

const userType = 'shopper';
Console
/index.html
-3:03