Figure out what you like. Go do that.
Of course, every once in a while you hear about somebody who did exactly that and it worked out for them. It that an exception or the norm?
For example, you take one year off to study and experiment with JavaScript. You waste one year and burn all your expenses and makes no money but you made something amazing (let's say a popular JavaScript library).
Since you come back after that one year and your hand are not empty, you should probably find a good job at a nice company or startup.