Hello I am a user……
I know the languages of HTML and CSS, I don’t know about JS yet, and it looks kinda hard to learn. I am currently learning Python. Is there anyway that I can use python instead of JS in my websites? I want to include some interactive content to my websites.
Not sure where to place this message so I thought General was a cool place to put it
unfortunately, browsers do not have python support. You could consider pyscript, which uses a tiny bit of javascript and then give you a way to run python on the web.
I don’t really think I’m going to go deep into Web Dev. Was at first thinking about a minor, but I just want to keep it as a hobby and small freelancing. At least I know I’m better than the web dev who made the website for Berkshire Hathaway.
Kind of like @python660 said, JavaScript is the scripting language that powers the web. Browsers do not understand anything other than HTML, CSS, and JavaScript, and there are very few tools that can replace JavaScript on the client side. It is by far worth it to learn basic JavaScript (which is by far easier to learn than other alternatives) and will very much make your experience designing web pages more enjoyable.
What about Flask? I used that for some time and even now I find js better it’s alright for web dev. Although I would recommend learning. Despite how it looks it’s not that bad if your learning it from a good place
JavaScript is great for web development, but if you are looking for alternatives, try compiling a different language to WebAssembly and then using it in your JS code. It can do a whole ton.
What about C++? That’s supposed to be meant for game development. I think you just need to use a platform like unity or unreal engine to actually make them look good.
I am currently learning python at the moment, was thinking about c++ and c# post JS and I am doing JS after python so atm, I am just looking to use python instead of JS for now.