I have medication to pick up at Walmart. Got my last notice today. Maybe tonight I can get it.
I get my settlement soon. Everything with the car is done. I’m thinking of saving the money. I will look for a car later. I’m not sure what I want in a car. Maybe something with a higher clearance and AWD? Good gas mileage.
I’m thinking of saving some money up to buy new hearing aids. Mine are almost ten years old and I only have one since my right hearing aid broke. I really am struggling to hear with only one hearing aid. Especially with it being in the left ear. I don’t process sounds very well in that ear and I hear better with my right ear. The new hearing aids will have bluetooth. So I will be able to answer the phone with them…instead of taking a hearing aid out and then answering the phone. Which is what I have had to do in the past when I had my right hearing aid. Plus, no more buying batteries. The new hearing aids will have a charging station where I can charge them every night. I’m actually more excited about getting new hearing aids than a car right now. As weird as that may sound. But I’m struggling to hear people at the moment.
I have the shopping list done for Thanksgiving. Now just need to go shopping. I’m getting excited for Thanksgiving. I get to bake and make rolls! And Alexis and Chris will be home. It’s always nice to have everyone home.
Next month I get back to planning in my planner again. I took a while off from having a planner. I’m looking forward to using stickers and washi again. Using markers and different pens.
JavaScript has been kicking my butt lately. I wish I could go over the basics again. It would help in understanding what we are currently doing.
I made my eye appointment. They are so busy there that their next availability is next year.. May 30th to be exact. I’m definitely going to keep calling to see if they have any cancellations but I did make my appointment for next year. Merlin has this toy pig that makes pig noises and that is what I was hearing the entire time I was on the phone. He kept jumping up onto the chair so I finally took the toy away for the last few seconds that I was making the appointment. Then as I was putting the appointment into my Google calendar, Merlin accidentally pushed the power button on my computer, shutting it off. I’m tempted to change the setting of my power button to do nothing when pressed instead of shutting down. I used to do that when the girls were younger when they would keep pressing buttons on my computer.
Back to coding. Then I may watch YouTube or play Final Fantasy xiv till Tommy gets home. I believe we are having soup tonight.
We are doing weights tonight.
JavaScript notes…
——————————————–
Return an English translated sentence of the passed binary string.
The binary string will be space separated.
function binaryAgent(str) { return str; } binaryAgent("01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111");
function binaryAgent(str) { var biString = str.split(" "); var uniString = []; /*using the radix (or base) parameter in parseInt, we can convert the binary number to a decimal number while simultaneously converting to a char*/ for (var i = 0; i < biString.length; i++) { uniString.push(String.fromCharCode(parseInt(biString[i], 2))); } // we then simply join the string return uniString.join(""); } // test here binaryAgent( "01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111" );
Check if the predicate (second argument) is truthy on all elements of a collection (first argument).
In other words, you are given an array collection of objects. The predicate pre will be an object property and you need to return true if its value is truthy. Otherwise, return false.
In JavaScript, truthy values are values that translate to true when evaluated in a Boolean context.
Remember, you can access object properties through either dot notation or [] notation.
function truthCheck(collection, pre) { // Create a counter to check how many are true. let counter = 0; // Check for each object for (let c in collection) { // If it is has property and value is truthy if (collection[c].hasOwnProperty(pre) && Boolean(collection[c][pre])) { counter++; } } // Outside the loop, check to see if we got true for all of them and return true or false return counter == collection.length; } truthCheck([{ name: "Quincy", role: "Founder", isBot: false }, { name: "Naomi", role: "", isBot: false }, { name: "Camperbot", role: "Bot", isBot: true }], "isBot");