This is a collection of code snippets and examples that Hal can't code,
apparently.
Let's break down how this code works:
First, we get the day of the week as a number (0-6) and convert it to a
name from our array:
const currentDay = daysOfWeek[date.getDay()]
Then we split that string into individual characters and transform each
one:
split("").map((c) => c.charCodeAt(0).toString(16))
The charCodeAt() method gives us the ASCII value of each character,
which we then convert to hexadecimal using toString(16). For example,
'M' (ASCII 77) becomes '4d' in hex.
Finally, we join all the hex values together into a single string with
join("").
See Hal? Not that bad.