Asking programmers for their favorite programming language is much like asking which religion is their favorite or which politician do they think will do the best job (ok, let’s assume that none of the above is not a valid option). There is also a bias based on how the question is posed. Their favorite programming language may not be the one they use the most or the one they know the best. It also depends very heavily on what they are programming. Game programming is very different from business application programming which is different mobile app programming or writing code for the IOT (Internet Of Things). So any survey has to be looked at carefully to determine the basis of how the survey was conducted otherwise we will wind up with another profoundly wrong announcement that Dewey has won the presidency all because the survey for that poll was skewed to people who had telephones in the homes. In any case, there is the top 10 programming languages for 2018 as determined by IEEE.

You can find this article at: https://spectrum.ieee.org/at-work/innovation/the-2018-top-programming-languages and if you want to play with some of the criteria used to rank the languages, go to: https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2018 .
No matter what you try, Python, variations on C and Java seem to lead the pack.
Does this mean that you should ignore other languages? Absolutely not. It very much depends on what your career goals are. It also depends on whether you need to program for the web, desktop computers, mobile devices or embedded systems (or some combination thereor: For SQL Server administrators, SQL is your best choice even though it only ranks in the low to mid 20’s. For web site builders, you need HTML (around the mid teens) and Javascript (usually in the top 10). Data Analysts need R (top 10). COBOL programmers are still needed to maintain legacy systems even though COBOL is ranked in the high thirty’s or worse.
I maintain that learning one or more programming languages makes you more valuable no matter what programming language you eventually go into because many of the basic logic constructs are similar across all languages. Therefore, learning to program might be considered to be more about the way you think than the specific language you use. So if you are just getting started, you might as well learn to think logically by playing with Minecraft.

