Posts

Showing posts from February, 2026

Module #6 and #7

Image
  Functions and strings are connected in PHP because functions are often used to work with and change string data. A function helps organize code into reusable sections, while string functions allow us to perform actions on text, like counting characters, changing uppercase and lowercase letters, or counting words. In my assignment, I created my own function called analyzeMessage(). This function takes a string as a parameter. Inside the function, I used built-in PHP string functions like strtoupper() to convert the text to uppercase, strlen() to find the total number of characters, and str_word_count() to count how many words were in the sentence. By combining functions and strings, I was able to keep my code organized and avoid repeating the same code multiple times. Instead of rewriting everything, I just passed a different string into the function. This shows how functions help structure programs better, while string functions make it easier to analyze and manipulate text. O...

My Website Wireframe & Design Process

Image
For my website wireframe, I used Canva to create a simple, clean layout that focuses on clarity and user-friendly navigation. The wireframe is structured into three main sections: header/logo , main content , and footer . Header / Logo: At the very top, I included a header box for my website name. This is the first thing visitors see, so I wanted it to clearly establish the brand. I also placed navigation links directly below the header to make it easy for users to move between different parts of the site. Main Content: The main content area contains three boxes. The first box is a welcome message , where I introduce myself and give visitors a friendly, approachable introduction to the site. The second box is a contact form link , providing users with a clear way to reach out to me. The third box is for a gallery display or additional content, giving visitors more interactive or visual elements to explore. The vertical arrangement makes it easy for users to scroll and digest the inf...

Module 4 Assignment

Image
Module 4 Assignment 1. JavaScript If Else Condition For this assignment, I created my own customized if-else condition using JavaScript. The goal was to display a message based on how many hours someone studied. This script checks the value of studyHours and displays a different message depending on whether the condition is true or false. I chose this example because it felt relatable and easy to understand, and it helped me see how if-else statements can be used to make decisions in a program. My First Website   Reflection: Creating the if-else condition was easier than I expected once I understood the logic behind it. The easiest part was deciding what condition to check and writing the messages that would display on the page. The harder part was making sure the syntax was correct, especially remembering where the curly braces go and how the if-else structure is supposed to be written. 2. The original code had an issue with the if-else statement structure. The problem was that t...