FOLLOW THIS QUESTION TO RECEIVE UPDATES
Web development is not going away anytime soon. If you are passionate about it and are willing to work hard it is most cerinly worth investment. There are a lot of types of invetment to talk about though. Time, money, possible relocaation. The upfront investment is going to be a bit dependant on if you are interested in getting your foot in the door and just landing a job in web development, or if you want to work on your fundments to better set yourself up for a career in web devleopment.
If you have some experince already, maybe have tinkered around for a while, built things on your own, or followed tutorials online and just want to get your foot in the door, then a bootcamp is a good investment. It's quite a lot of money up front usually, but they pack so much into the short time you are there that it can certinly be worth while.
If you don't already have some base knowlege/experince with web devleopment or computer science, I woudl reccomend opting for a program that will give you a bit more of an in depth look into what is really going on at a lower level than what a bootcamp can offer. I studied at Holberton in SF, and there are other school's like it out there. This school focused on making sure students had a solid understanding of how all the pieces of software eningeering fit together, and not just how a single language or framework works. That menas that students are prepared to transtion to new languages or framworks as the industry changes and moves forward.