Learn the fundamentals of JS first. If you have time, learn some libraries and Frameworks. Always remember that the fundamentals will stay the same, libraries and Frameworks fade. That said, long after something falls out of popular use there will be requirements for maintenance and adjustments. jQuery isn't dead yet.