I’m finally home after a busy morning out with Kel and Karissa. Karissa had an eye appointment, which went well, and she received new prescriptions. Afterwards, we headed to Costco to pick up her new glasses, which she will receive in a few weeks. We enjoyed lunch at Costco while waiting for Kel and her…
Author: desertkitten_md0op6
Monday coding
So today I’m working on anagrams in coding. I need to write a function that checks if two strings are anagrams. We will start by saying that an anagram is a literary device where the letters that make up a word, phrase, or name are rearranged to create new ones. Two strings are considered anagrams…
Another blustery day
I’ve figured out how to write that takes two arrays and returns a new array containing only the elements that are common between them: function findCommonElements(arr1, arr2) { return arr1.filter(element => arr2.includes(element)); } The console.log works: console.log(arrayIntersection([1, 2, 3, 4], [3, 4, 5, 6])); // [3, 4] The next problem is to write a function…
An anxious day
I feel alright, though I’m experiencing a bit of anxiety. Today, there’s something about coding that appeals to me, even if I’m struggling with it; it feels like a safe pursuit, like I’m engaging in exactly what I’m meant to be doing. I’ve locked up the house, as my anxiety is a bit heightened. I…
An easy day
I had my doctor’s appointment this morning, and it went well. My blood pressure was a bit low, so she advised me to reduce my blood pressure medication by half. We will monitor how this adjustment affects me over the next month. I check my blood pressure in the morning, and it tends to be…
A blustery day
Ok, I think I finally figured out the Fibonacci sequence function. It took me days and I this function seems to work when I console.log it. Here is the function: function fibonacci(n) { if (n
It’s Friday!
I’ve decided that I want to dye my hair, and I’m planning to do it in the summer before the cruise. I’m thinking about going for a dark, blackish-red color. It’s a bit difficult to describe, but I definitely want it to be dark. I’m not sure if I’ll get a haircut before coloring my…
Hello, Thursday
The Fibonacci function has me perplexed. There are so many examples available online that I’m unsure whether I should simply follow those or attempt to code it from scratch and see if that yields results. I realize my thoughts may seem a bit unclear at the moment; that’s just how my mind is working today….
Hello, Thursday
The Fibonacci function has me perplexed. There are so many examples available online that I’m unsure whether I should simply follow those or attempt to code it from scratch and see if that yields results. I realize my thoughts may seem a bit unclear at the moment; that’s just how my mind is working today….
Hoping for rain
I have spent my morning figuring out how to write a function that returns an array containing the first ‘n’ Fibonacci numbers. I found out what I need to do: Initialize an empty array. If n is 1, return [0] (since the first Fibonacci number is 0). If n is 2, return [0, 1]. Otherwise,…