jQuery's a great choice for beginners learning to program for the first time. Two related frameworks, underscore and d3, both have jQuery-inspired APIs and use higher-order functions extensively. These frameworks teach lessons in functional programming that transfer easily to Python, Lisp, Haskell, and even mathematics.
Think it's funny most people see javascript is the same as jquery.
Learn to code is the same a learning a framework?