Salt is good for you in small quantities because sodium, part of salt, is required to maintain your blood pressure and is important for your neurological system. However too much can be bad for you because your body will become dehydrated as salt absorbs water.
That’s understandable
In reality as of as you’re getting at least 8 hours of sleep a day you’ll be functioning correctly when you wake up