Not true at all. You just need to find a company that values you and your work.
Our company intentionally hires juniors so that we can groom them as they grow. I was one of those juniors < 5 years ago and I've increased my salary > 100%.
Our company intentionally hires juniors so that we can groom them as they grow. I was one of those juniors < 5 years ago and I've increased my salary > 100%.
A single counter example is sufficient evidence to disprove such a universal claim.