Module 4: Web Programming and Web Design

Link to my site: https://drew-williams.infinityfree.me/Module3.html

For the web programming section, I created my own JavaScript if/else condition. My script checks the current day of the week and then displays a different message depending on whether it’s a weekday or the weekend. The easy part was writing the basic structure of the condition. The harder part was remembering that getDay() returns numbers (0–6) instead of text like “Monday” or “Tuesday.” Once I figured that out, the condition worked correctly and displayed the right message on my page.

I also fixed the broken example code from the assignment. The original code had the else statement placed incorrectly. After adding the missing curly brace, the script now runs properly and displays “Good day” before 6 PM and “Good evening” after 6 PM.

For the web design section, I used Canva instead of Photoshop to create a simple test image. I downloaded it in JPG format. The process was pretty easy in Canva since it lets you export directly into different file formats without extra steps.

Overall, this module helped me practice writing my own conditions in JavaScript, fix errors in code, and learn the importance of saving images properly for the web.





Comments

Popular posts from this blog

Module 8: PHP Forms and GET vs POST

Module 2: Introduction to HTML, CSS, and FTP

Working with Datetime and Timedelta in Python