Based purely on usage, the easiest way is to look at the Tags and ignore anything not a language. The top 5 happen to be languages and include both C++ and JavaScript.
Language |
Questions |
This month |
Python |
15243 |
40 |
Java |
10854 |
13 |
C# |
10013 |
13 |
JavaScript |
9648 |
12 |
C++ |
9322 |
25 |
Popularity is not a well-defined metric if we don't consider purely the amount of usage.
One way to look at engagement, would be looking at the questions and accepted answer percentage (query borrowed from here). Look at the top 200 tags, discarding anything not strictly a language or language version:
While ECMAScript is basically JavaScript (ES6), the tag javascript itself is at 54%. That's scoring slightly better than languages like vba (53%) and go (48%), but definitely not at the top. The other top-5 language not mentioned yet, java, is at 57%.
Comparing javascript and c++ over time directly (thanks to Heslacher for the query):
javascript:
c++:
Year |
Q JS |
A JS |
Q C++ |
A C++ |
2012 |
554 |
849 |
272 |
476 |
2013 |
735 |
978 |
432 |
713 |
2014 |
1238 |
2031 |
930 |
2041 |
2015 |
1248 |
1704 |
1091 |
1920 |
2016 |
1272 |
1532 |
1199 |
1804 |
2017 |
1126 |
1471 |
1185 |
1831 |
2018 |
805 |
1106 |
1025 |
1846 |
2019 |
832 |
1087 |
832 |
1287 |
2020 |
705 |
871 |
835 |
1256 |
2021 |
447 |
577 |
616 |
1100 |
2022 |
308 |
358 |
479 |
784 |
I'll leave any conclusion about which the more popular language is up to you, but those are the numbers.