I’m uncertain about what to write today. I’ve been coding all morning and am presently working on a function, power(base, exponent), that calculates base raised to the exponent. I’ve consulted Google and found several examples, and I believe the basic structure of my code will resemble this:
function power(base, exponent) { // Code here }
I haven’t yet determined what exactly should be included in the code. I’m considering using the `Math.pow()` method, which returns the value of a base raised to a specified power. However, I’m not entirely clear on how to utilize this method.
I have therapy soon, and I’m uncertain about what to discuss in this session. Perhaps I could focus more on IFS therapy, which we’ve been exploring for the past few weeks. IFS can be challenging to grasp at first, but I’m starting to gain a better understanding of it. Internal Family Systems (IFS) Therapy is an interesting and effective psychotherapy approach that conceptualizes the mind as comprising various “parts,” each with its own perspective, emotions, and roles within a person’s internal system. The objective of IFS is to help individuals understand and harmonize these parts, ultimately promoting greater self-awareness, healing, and inner balance. So this gets confusing but I’m willing to give it a try.
For now, simply noting my thoughts, emotions, and reactions without judgment can serve as good practice. IFS is more focused on exploring emotions than seeking immediate answers.
I’m going to have some lunch and then return to coding before my therapy appointment. I’ll be enjoying last night’s leftovers, which consist of Thai Panang curry—it was quite good.
During therapy, we mostly just talked. Well, he asked a lot of questions to get me to talk. We discussed the upcoming cruise, and he inquired about my plans to visit my mom in California with my girls. I’m not certain when that will be. However, I know I need to dye my hair before heading to California; I can’t show up with two-toned hair. My mom would certainly have plenty to say about that. Ideally, I’d like to get my hair dyed before the cruise. I just would like a hair change. I’m still on the fence about cutting my hair.
I can’t believe I spent hours on learning Math.pow() and didn’t realize that that was the whole function. The function looks like this, and it works with the console.log:
function power(base, exponent) { return Math.pow(base, exponent); } console.log(power(2, 3)); // Output: 8
Math.pow() is a built-in JavaScript function that calculates the power of a number. The syntax is:
Math.pow(base, exponent)
- base → The number you want to raise to a power.
- exponent → The power to which the base is raised.
Magandang hapon. Good afternoon. Kel is currently sleeping. She’s been having some difficulty adjusting to Alex’s new job schedule. I’m unsure how long I should let her sleep, so I think I’ll allow her to wake up on her own. I’m also contemplating what we should have for dinner. We have a few items that Tommy purchased from Costco yesterday. Additionally, I have an appointment at the hearing aid center at Costco on Saturday to have my right hearing aid adjusted, as I would like it turned up. I’m having trouble hearing out of it and am relying entirely on my left ear, which feels unusual since my right ear typically functions much better.
Now, I’m going to make Tommy’s lunch for tomorrow and prepare some tea.





