This version also uses a function also, but we attach it to window.onload but we don't name the function when we do so.
Since the function is not named, we call it an anonymous function