If you want to get rid of the Dashboard on your Mac running macOS Mojave or earlier, you can do so in System Preferences.
Apple provides one clue in macOS as to which of many windows you may see on screen is the current frontmost active one: the “traffic light” red, yellow, and green buttons for close, minimize, and ...