It’s morning and I’m not sure what I need to do today. Ok, I know what I need to do. I need to get to work on coding. But today it is looking foreign to me. But I must continue on, wishing I can backtrack on some of the things I have learned so I can get more experience.
It’s been a month since my car has been out of commission and I’m feeling it. What is taking them so long to look at my car and just tell me what the damage is so we can continue on to getting her fixed? I know I shouldn’t be like this and I shouldn’t be so impatient. Many things happen that create situations where they can’t get to my car. But I find it easier to be impatient here than unleash my impatience to anybody else. Although I still think that a whole month of waiting to see the final total on damage is a bit excessive.
I’m in a good mood. I’m restless, but I am having trouble getting my day started. I’ve already showered and dressed, made the bed, had breakfast. So in theory I’m doing alright so far. I have the heater on in the office. Merlin is afraid of the heater. Looking at him at home it doesn’t seem like it, but he is very shy and cautious when out of the house and around people he doesn’t know.
Oh, the airfryer pumpkin seeds turned out good. I think I’m the only one eating the pumpkin seeds. I should probably ask others to try them. I plan to make pumpkin bread tomorrow, cause I need butter. I have everything needed except butter.
I found an everything bagel in the pantry. I don’t know who owns it. So I decided to have one for lunch. That was my lunch. I think I need to go get a salad cause I’m still hungry.
Apparently YouTube thinks I speak Spanish. Probably from all the Mexican cooking channels I watch.
I saw a Bath and Body Works ad. I find it hard to shop at their online store since I can’t smell anything. Unless I get something that I’ve already gotten before. But we all know they don’t sell the same scented products year after year. It’s like that Scentsy mlm thing that many of my friends are doing now. I find it hard to shop cause I can’t smell anything that they are selling. Especially when it’s named something like, ‘Christmas Cottage.’ What does a Christmas cottage smell like? What does Christmas smell like? Cinnamon and pine trees? I got a real Christnas tree a few tunes cause I wanted my house to smell like a pine tree. Of course my allergies flared up so badly but how nice my house smelled. It was worth it. I think now I’d just get a candle. Knowing Merlin, he’d drink the tree’s water.
Merlin and the Christmas tree this year will be an experience. I’d like to put some of my Christmas village on the table. We put it around the Christmas tree one season but that will be a bit hard with the new puppy.
Oh, today we are supposed to think of Thanksgiving! I have Simplenot up, which I use to make the menu and the shopping list. Let’s try not to shop on the day before Thanksgiving. Especially if we are making pies. I have last year’s Christmas menu, but I don’t have Turkey Day’s menu. But it will be easy to make one. Now I need to text everyone and see what they would like to see for Thanksgiving. I already heard from Kel and Karissa. I’d like to see how to make some of the recipes we normally do.. a little bit healthier if possible.
Ok, I texted everyone to tell me what they would like for Thanksgiving. With a few disclaimers of course. I must know soon, no waiting a week before Thanksgiving and not every dish thought of will be made. There are some repeats of dishes already.
Why am I getting so many Sephora ads? Ok, I was just looking through there once and all of the sudden that is all I’m seeing. At least they are nice ads. Lol
Ok, I should post this now.
For the few asking why I don’t have comments at the end of my posts…because I have too many problems with spam and decided to just not have comments.
JavaScript notes…
————————————-
A prime number is a whole number greater than 1 with exactly two divisors: 1 and itself. For example, 2 is a prime number because it is only divisible by 1 and 2. In contrast, 4 is not prime since it is divisible by 1, 2 and 4.
Rewrite sumPrimes so it returns the sum of all prime numbers that are less than or equal to num.
function sumPrimes(num) { return num; } sumPrimes(10);
function sumPrimes(num) { // Check all numbers for primality let primes = []; for (let i = 2; i <= num; i++) { if (primes.every((prime) => i % prime !== 0)) primes.push(i); } return primes.reduce((sum, prime) => sum + prime, 0); }
Find the smallest common multiple of the provided parameters that can be evenly divided by both, as well as by all sequential numbers in the range between these parameters.
The range will be an array of two numbers that will not necessarily be in numerical order.
For example, if given 1 and 3, find the smallest common multiple of both 1 and 3 that is also evenly divisible by all numbers between 1 and 3. The answer here would be 6.
function smallestCommons(arr) { return arr; } smallestCommons([1,5]);
function smallestCommons(arr) { // Setup const [min, max] = arr.sort((a, b) => a - b); const numberDivisors = max - min + 1; // Largest possible value for SCM let upperBound = 1; for (let i = min; i <= max; i++) { upperBound *= i; } // Test all multiples of 'max' for (let multiple = max; multiple <= upperBound; multiple += max) { // Check if every value in range divides 'multiple' let divisorCount = 0; for (let i = min; i <= max; i++) { // Count divisors if (multiple % i === 0) { divisorCount += 1; } } if (divisorCount === numberDivisors) { return multiple; } } } smallestCommons([1, 5]);