Pale Blue . digital
Home Sewing Projects Garden Projects Coding Projects Woodworking Projects

Week 3

If/else, switch case statements, external javascript

If and else statements

Uses an if and else statement to determine voting eligibility based on age.

Age based privilages

Takes in the user's age using a prompt and uses if/else if statements to determine eligibility for various activities.

File type verification

Uses if/or/else to check if the file type entered matches the requested file type.

Sumulated 2FA

Uses if/and/else to simulate a two factor authentication system.

Switch case statements

Uses some violent femmes lyrics to demonstrate switch case statements.

Changing elements dynamically

Using JavaScript to dynamically change elements on the page.

External JavaScript

Link to an external JavaScript document. If it works, it will replace the text on the page with "it worked!".

Practice assignment

Discription of the practice assignment

Test