After ten years a lot of things will change, if you write a code now you should do a refactoring because the syntax will change like Javascript changing ES06, 07 and 08. But you are growing together with the technology as well.
For example, an architect builds some home modern for days today, but after 10 years new ideas, new concepts appear. So, it occurs in all areas of jobs, software development is very frequency, but it doesn't the thing for demotivating and be frustrated, the changes are important, nowadays is very nice and motivated to write an app with React instead only HTML, CSS, JS.
Keep study is the best way! Don't give up!