i think it's a good way to become a decently paid worker that will probably get paid the same/less as time goes on without other relative skills to tie with it due to market over saturation, everyone codes nowadays.
been web developer for +5 years now and starting to see salaries drop. also companies favor younger employees. so really depends on your goals and what kind company you want to work for.
i also think the stats for those schools are overstated. becoming decent/good at javascript is more than a year long process and that's just to get the basics. i also think being a pure coder suffers from burn out, overworked in monotonous environment. that's why I say couple it with something else as well
plus you will just be setting up a cycle of learning code forever. technology changes all the time
Please don’t learn to code