3 ms·
Both are good on-ramps to programming. Python has simple syntax which you can learn by solving problems running on a command-line (so very linear, text-based).
by jones1618 2y ago
Both are good on-ramps to programming.
Python has simple syntax which you can learn by solving problems running on a command-line (so very linear, text-based). The big downside (IMO) is indention-based code blocks which can seem finicky and generate head-scratching errors.
On the other hand, JavaScript is more C++-like and commercial. You can learn in your browser. The downside is JavaScript tends to have 5 ways to do anything and tempts you with a million frameworks which can confuse beginners. Also, once you get past simple "write a function to reverses a string" problems and want to start working with web user-interfaces, apps, etc., the environment is vast, complicated and frought with quirks from its layered history.
Personally, I'd start with learning JavaScript syntax only. Ignore frameworks and web apps entirely until you're ready. Also, if I was starting today I might focus on TypeScript, a cleaner more modern version of JavaScript that is stricter about its syntax and types which will create better programming habits while making dumb mistakes more obvious than loosey-goosey JavaScript.