I shouldn’t have a book on my desk during the day when I should be focused on coding, as I often find myself distracted by reading. To avoid this temptation, I’ve decided to keep my book in the bedroom. I’m nearly finished with “Race Across Alaska.”
Recently, I attempted to place a book on hold at my library online, but I discovered that my account had expired. This means I’ll need to visit the library to renew both my library card and my account. Tommy playfully teased me last night about not taking me to the library. I’m eager to go soon to check out some books for my Kindle.
In my coding practice today, I’m working on functions. One function I’m developing takes an array of numbers and returns the largest one:
function maxNumber(arr) { if (arr.length === 0) { return undefined; } let largest = arr[0]; for (let i = 1; i < arr.length; i++) { if (arr[i] > largest) { largest = arr[i]; } } return largest; }
Or we can use Math.max(). A static method in JavaScript that returns the largest of zero or more numbers provided as arguments. If no arguments are provided, the result is -Infinity:
function maxNumber(arr) { return arr.length === 0 ? undefined : Math.max(...arr);
Here’s another function I worked on today. A function that takes a string and returns the reversed version of it:
function reverseString(str) { return str.split("").reverse().join(""); }
It is lunchtime, and I’m enjoying a turkey sandwich along with some pita chips—it is quite satisfying. Since I skipped breakfast, I was fairly hungry. For dinner, we’re having tamales. I began cooking beans at 7 this morning. Kel has asked me to help find her watch. I quickly checked her desk, dresser, and nightstand, but unfortunately, I didn’t locate it. I won’t have time for a more thorough search until later.
Before I end this post, I will talk about the next port on the cruise. Cork, Ireland. Cork is a vibrant city in southern Ireland, known for its rich history, lively cultural scene, and beautiful scenery.
Key Facts About Cork:
🏙️ Second-largest city in Ireland (after Dublin).
🌉 Located on the River Lee, with many charming bridges and waterways.
⚓ Major port city, historically important for trade and emigration.
🎭 Cultural hub, with festivals like the Cork Jazz Festival and the Cork Film Festival.
🏰 Home to Blarney Castle, where you can kiss the famous Blarney Stone for the “gift of gab”.
🏫 University College Cork (UCC) is one of Ireland’s top universities.
🍽️ Famous for its food scene, including the English Market, which has been serving fresh local produce since 1788.
🍺 Known for Murphy’s Irish Stout, a rival to Guinness.
I’m going to finish up coding for the day, then make Tommy’s lunch for tomorrow and put away clothes.





