0

Is it possible to use Python instead of Javascript?

I have completed learning Python in Sololearn. Now, I started learning Javascript. But, Python is much easier than Javascript (for me). Can I use Python as a scripting language? If yes, then how?

19th Aug 2021, 3:25 PM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar
2 odpowiedzi
+ 6
python is a scripting language too , if you want to use python for frontend instead of javascript , you should create a compiler that will translate python codes into webAssembly (WASM) , or into javascript like Gopherjs where you can write go code and it will translate into javascript here is a link that introduce some python front-end libraries : https://techbullion.com/5-tools-for-frontend-development-on-python/
19th Aug 2021, 3:30 PM
Nima
+ 4
Yes but it's not advisable if you want to be a professional Front-end developer. There are tools like Transcrypt that allows you to program in Python for Front-end: https://www.transcrypt.org/ https://github.com/qquick/transcrypt
19th Aug 2021, 3:34 PM
David García Prados