So imagine this code:
let x = alert("hi") // I know this returns undefined...
right? I know 'alert' returns 'undefined', but, when assigned, it still does something that affects the webpage, though, so, how can I use functions that would have 'consequences', without said 'consequence(s)', but just the return value?
Sorry if I made it confusing, let me know, and I can try to clear up confusion.