MEDIUM: Write a program to tell if someone is shouting(typing in all caps), whispering (typing in all lowercase), orneither. Use prompt to get user input, and then console log whetherthe user was shouting, whispering, or talkingnormally.
Explanation: you would basically be checking forcapitalization. So if the user inputs "HELLO" they're shouting,"hello" would be whispering, and "Hello" would be neither since itis combining both upper and lowercase letters.
Completed Index.html File:
Variables3.js file:
G 1 10K 49.8 EXPLORER ✓ EXCERCISE 3 <> index.html JS variables3.js : JS variables3.js <> index.html > ... 1 2 3 4 5 6 7 8 9 10 12345 11 <> index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Excercise3</title> </head> <body> <H1>Open the console to see the magic</H1> <script src="./variables3.js"></script> </body> </html>
9⁰ 10K 4 28 EXPLORER ✓ EXCERCISE 3 <> index.html JS variables3.js : JS variables3.js X <> index.html ● JS variables3.js 1 2 3
MEDIUM: Write a program to tell if someone is shouting (typing in all caps), whispering (typing in all lowercase), or ne
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am