Yeah, that's fine, everything can be written in everything.
I remember these pitches as early as 2008-10 from various Mozilla evangelists who were pitching that browser will be the OS and javascript will be the platform for all apps.
I kind of doubted it and I still do. Of course a lot of stuff is written in Js.. because web is based on Js. a lot of desktop apps are written in Js (+Electron) because people who are not good at native development (and also platform vendors are not helpful to provide consistent approach to GUI and desktop apps) decided that Js+Electron runtime is best way to write portable apps.
It works.. but I personally hate each and every desktop app written in Javascript due to the bloat factor measured by its size overhead and performance impact.
People write backend/server side applications in Javascript because of NodeJs.. and that's more legit to me, although just one of many fashionable ways to create a web server these days. nothing truly unique outside personal choice and recommendation on per project basis.
So web in the browser wins (although if somebody invented better way to create client side application without Javascript I'd bless him.. it's such a horrible language). Server side is ok-ish to consider if one likes it... and for true client side apps which belonged to desktop in the past... well actually rust, crystal, nim and all the renaissance of native development + gui libs and LLM that accelerates the development significantly... I'd assume electron apps should reverse.
Web adoption also may be kinda shaky as with all the crawling and surveillance around web+browsers.. I do really hope 2035 will bring alternatives there first... regardless of the programming language of choice.
"I kind of doubted it and I still do."
What's there to doubt? It's reality for me for at least a decade now.
Every app I use for work runs in the browser. Writing, design, programming, email, messenger. I open a browser and things just work, irrespectively of the OS.