Console.log challenge change all of the links on a search results page so that they do not go anywhere?
Refactoring is commonly seen as "moving out repeating code into reusable functions". But it can also easily mean "moving code that's only ever used once back to where it's being used". Although the book led you to writing individual functions, you don't have to split all this code up.

Also, if you're just turning a NodeList into an array just to use array.forEach(), then this conversion is unnecessary. NodeList already comes with a forEach method (unless you still care about IE).

Your code could be as short as:

document.querySelectorAll('a').forEach(link =&gt; {
  link.addEventListener('click', event =&gt; event.preventDefault())
})