There are days when your connection breaks, not because the internet is down, but because your computer is confused. Wrong IP, no IP, stuck on an old network, or just refusing to pick up a new one.
There are multiple ways to view the Wi-Fi password, but using Settings is the easiest. The Netsh utility, accessible via Command Prompt, shows passwords for all the networks you've ever connected to.