My day hasn’t been too productive. I did do laundry, although I had not folded them and put clothes away yet. I’m thinking later this afternoon I will get to that.
Last weekend was a few days of resting. Did get some exercising in. I made enchiladas last night. They came out pretty good.
I’m still reading Lessons in Chemistry. This book has a lot of hype. To which I’m hoping things will pick up soon in the book. For one, our protagonist is a scientist in the 1950s, but but reads like someone time traveled back from 2022(when the book was written) just to spout feminist monologues. I’m all for the feminist way of thinking, but it doesn’t seem to vibe with how the 50s women were. Although I wasn’t alive in the 50s, so I could be wrong. The protagonist is also a bit devoid of any emotion because for some reason scientists can’t have feelings? I’m a bit confused by this one. Also, a brutal rape was described in detail. This book was advertised as light and funny. I’m not seeing the light and funny part. The cooking show portions of the book was cute. I’m just not seeing what the hype is about the book. Am I just being pessimistic? Are the positive book reviews just a result of the ‘groupthink’ phenomenon? And I’m guilty of groupthink cause I hate upsetting people. Which I’m trying to get over and let my own opinions come out more. Still hard to disagree with others.
I was hoping to get some word on my car today but it doesn’t look like that is happening. Maybe tomorrow.
I keep thinking of something happy to post, although I think it would just seem as I’m spouting toxic positivity and I don’t want to do that. ‘Toxic positivity’ is the lack of acknowledgement all your emotions, like anger or sadness. It posits that positive psychology places too much importance on upbeat thinking, while shunting challenging and difficult experiences to the side. And I’ve been known to do that. So I’m trying to be more rounded as a person and let all my emotions out on the table. So I’m not feeling that happy today. I’m not exactly sad either. I’m kind of annoyed with today. JavaScript was kicking my butt, I don’t feel the day was productive, I spent the day giving orders I was told to give when I just wanted to work on my computer in peace. I want to exercise tonight. I think that will help my mental well being today.
JavaScript notes…
————————————————-
We’ll pass you an array of two numbers. Return the sum of those two numbers plus the sum of all the numbers between them. The lowest number will not always come first.
For example, sumAll([4,1]) should return 10 because sum of all the numbers between 1 and 4 (both inclusive) is 10.
function sumAll(arr) { return 1; } sumAll([1, 4]);
function sumAll(arr) { let minimumNumber = Math.min(arr[0], arr[1]); let maximumNumber = Math.max(arr[0], arr[1]); var result = 0; for (var i = minimumNumber; i <= maximumNumber; i += 1) { result += i; } return result; } sumAll([1, 4]);
Compare two arrays and return a new array with any items only found in one of the two given arrays, but not both. In other words, return the symmetric difference of the two arrays.
Note: You can return the array with its elements in any order.
function diffArray(arr1, arr2) { const newArr = []; return newArr; } diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]);
function diffArray(arr1, arr2) { const newArr = []; for (let i = 0; i < arr1.length; i += 1) { if(arr2.indexOf(arr1[i]) === -1) { newArr.push(arr1[i]); } } for (let j = 0; j < arr2.length; j += 1) { if(arr1.indexOf(arr2[j]) === -1) { newArr.push(arr2[j]); } } return newArr; } diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]);