Hi friends!
We're back. I hope you had a great week!
Â
Web links of the week
JavaScript Strings Cheatsheet
GSAP 2.0 Released
GraphQL: Everything You Need to Know
Progressive Web Games
Â
Something that interested me this week
I'm pretty stressed out right now, I admit! I have some really big projects and events coming up this next week, plus I'll be traveling (when I send my next letter, I will have been in 4 different states in 4 days), plus I have a friend's wedding to attend. Yikes!
For stress relief, I've been taking breaks by watching the Great British Bake-Off on Netflix. My word, that show is wonderful! The hosts are so funny, the judges are fair, and the events in the show are exciting but not too tense. I really love it so far. It's also great for writing code (or this newsletter) without having to worry about specific plot points. I highly recommend it if you need a break.
Â
Interview question of the week
Last week, I had you write a function that returns the sum of 1*1! + 2*2! + ... + n*n! given n. Here's my solution to the problem!
function factSum(n) {
 return _factorialize(n+1) - 1;
}
// My helper function that returns a factorial:
function _factorialize(num) {
 if (num < 0) return -1;
 else if (num === 0) return 1;
 else {
   return (num * _factorialize(num - 1));
 }
}
This week's question:
Given a queue, write a recursive function to reverse it.
Â
Cool things from around the internet
A Colorful Medley of Inventive Type Animations Puts the Alphabet in Motion
The Brutalist: Build Log
The Moon Pod: A Sound Sculpture Designed to Play a Single Piece of Music That Waxes and Wanes With the Moon
How is a PCB Manufactured?
Â
Joke
My husband gives me alphabet soup all the time, claiming I love it, but I don't. He's just putting words in my mouth!
Â
Thanks for reading, friends! Have a great week. Be safe, make good choices, and keep your shoulders back.
cassidoo