I am a touch confused by the poll.
Java is usually used for mobile apps and that is NOT the same thing as javascript. You can do a mobile app with javascript I would think but I do not believe it is all that common. I could be wrong, I often am
It would not matter to me which one to learn first. A language is a language is a language. Programming is programming is programming.
Once you get a firm handle on any language it is pretty easy to move between languages. So you want to get a strong understanding of logic and structure and then all you need is the manual for the language that you want work in.
Just imho of course.
.