Your brain refreshes and sets itself up so it’s easy to learn the next day. So like defragging and deleting the crap off your computer.
Your brain and body cleans up and removes wastes chemicals and crap that build up during the day.
Your body repairs itself.
edit:
You brain processes and analyses what happened during the day. So if you are say learning an instrument you will play better after getting some sleep.
Latest Answers