I learned today that both apple pie and pumpkin pie originated in Britain. That’s your history lesson of the day. It is almost that time of year when I get to make apple and pumpkin pies. I want to make pumpkin bread this year also. I have a few pie pumpkins that I need to make puree. I also have some in the freezer. Tommy showed me a recipe for pumpkin seeds in the airfryer. I need to try that. Maybe when I’m done writing here I will make some pumpkin puree and airfry the pumpkin seeds.
There is a book that my therapist recommends that I read. It is called, “The Wounded Heart” by Dan Allender. It’s about trauma and abuse. I’m kind of scared to read it. That it will be triggering. I’ve looked it up on GoodReads and it got some good reviews and many saying that it is a hard read. I don’t know. I should probably just read it and have another book on the side to read in case I need a break from the book.
I have another day of not knowing what to talk about. I’m feeling unmotivated. I should just get up and start doing things. I need to put laundry away and make pumpkin puree. I should just go and do it. I wonder if I can use a blender on the puree? Our food processor, the part where you put the food in, is cracked and makes it a bit hard to use. Oh no. This isn’t good cause the holidays are coming upon us. I need to look into this. This Wednesday we are discussing Thanksgiving plans. I’m so excited for the holidays coming. And I’m usually the one getting all the recipes together. And I like doing this. The planning and baking and cooking. <3 I wonder if I can get some candy on Halloween? I'm not supposed to be eating candy but maybe a candybar? My kids don't Trick or Treat anymore so I can steal their candy. Lol! The dogs are staring at me. I'm going to let them out and start pureeing the pumpkins. I wonder when I'm going to hear more on my car and get this claim moving forward? I would sure love my car back. Even if I don't drive it a lot. Just having the option to drive is nice. Plus, I'm getting tired of walking to the mailbox since there are no sidewalks to the mailbox.
JavaScript notes…
——————————————
Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.
In other words, all values present from all arrays should be included in their original order, but with no duplicates in the final array.
The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.
Check the assertion tests for examples.
function uniteUnique(arr) { return arr; } uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);
function uniteUnique(arr1, arr2, arr3) { // Creates an empty array to store our final result. const finalArray = []; // Loop through the arguments object to truly make the program work with two or more arrays // instead of 3. for (let i = 0; i < arguments.length; i++) { const arrayArguments = arguments[i]; // Loops through the array at hand for (let j = 0; j < arrayArguments.length; j++) { let indexValue = arrayArguments[j]; // Checks if the value is already on the final array. if (finalArray.indexOf(indexValue) < 0) { finalArray.push(indexValue); } } } return finalArray; } uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);
Convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities.
function convertHTML(str) { return str; } convertHTML("Dolce & Gabbana");
function convertHTML(str) { // Split by character to avoid problems. var temp = str.split(""); // Since we are only checking for a few HTML elements, use a switch for (var i = 0; i < temp.length; i++) { switch (temp[i]) { case "<": temp[i] = "<"; break; case "&": temp[i] = "&"; break; case ">": temp[i] = ">"; break; case '"': temp[i] = """; break; case "'": temp[i] = "'"; break; } } temp = temp.join(""); return temp; } //test here convertHTML("Dolce & Gabbana"); Code Explanation
Given a positive integer num, return the sum of all odd Fibonacci numbers that are less than or equal to num.
The first two numbers in the Fibonacci sequence are 0 and 1. Every additional number in the sequence is the sum of the two previous numbers. The first seven numbers of the Fibonacci sequence are 0, 1, 1, 2, 3, 5 and 8.
For example, sumFibs(10) should return 10 because all odd Fibonacci numbers less than or equal to 10 are 1, 1, 3, and 5.
function sumFibs(num) { return num; } sumFibs(4);
Category: Uncategorized