I'm new to programming and I'm studying javascript to become a Front End Developer as a short-term goal, in the future I plan to be a programmer, because I'm interested in machine learning / artificial intelligence, nowadays I read several texts and articles on the subject and in one of these searches I saw texts that indicated Haskell as a great language for this purpose, I know that it is possible to work with other languages, including javascript, but I have already tried to trace the most "rich" way possible in terms of information and possibilities that I will continue studying, so I intend to decide now what is the next subject to study.
Being more objective:
After javascript is it better to focus on some imperative language or to go to a functional (Haskell)?