Most of the time changes pile on top of the previous version and don't make everything you've learnt irrelevant - one recent notable exception being the complete rewrite of Angular's syntax.
You won't have to learn everything from scratch though, even when switching across languages.
The logic...