But why not just write JS/HTML5 code which inherently works on web, and use something like Electron to make it work on desktop too?
Stating that some language is better than another isn't really a good argument, most of it has to do with domain specific knowledge being leveraged to enter another market.