The logger
function logs a message to the console and returns a closure that can be used to print additional messages, but with a prefix of "wtf? ". The test
function demonstrates the usage of logger
by calling it and logging "wtf? undefined" to the console.