Exercise 8 · Chapter: ConditionsOptional+50 XP
Password Check
Read a password from the user. If it matches js123, print Access granted. Otherwise, print Access denied.
Example 1: Input js123 → Output Access granted
Example 2: Input hello → Output Access denied
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.