If you like to write both front and back, you can make a move as a horse. Many companies offer a full-stack developer position. It includes both directions. When you get used to it and want to switch to something specific, nobody will prevent you from developing further in one direction.
As I wrote above, I once faced the task of making such a choice. I used the first two and fourth approaches. You will know the power of the first one yourself when you write a couple of projects. The second one didn't work out very well. The fourth project was implemented together with the first one.
The result of the first one is Python
Front, I thought I liked it too and decided to take the full-stack position. As soon as the decision was made, I wrote an application on my own at my previous job and started to actively send my resume to potential employers. The financial pillow for 2-4 months was there, as well as a firm confidence to walk through the interviews before the victory.
I wrote in my