Is it possible to replace the JavaScript language with Python, I mean, instead of using JavaScript to interact with the user on the webpage, is there any way I can write this interaction in Python instead of using JavaScript?
Is it possible to replace the JavaScript language with Python, I mean, instead of using JavaScript to interact with the user on the webpage, is there any way I can write this interaction in Python instead of using JavaScript?
Today is not possible. Maybe soon through WebAssembly . But in this particular case I see little advantage.
You can use "interpreters" like JavaScriphton to translate your Python code into JS or even solutions like CoffeScript or TypeScript to program in a cleaner version of the language.