Modern JavaScript and Python have a lot in common - for example the iteration protocol, generators, module import syntax, and async/await syntax should feel pretty similar. JS does not have comprehension syntax (e.g. the list, dictionary, set, and generator comprehensions available in Python). It is much more common to use functional programming patterns. Arrow functions in JS are analogous to lambdas in python. JS functions do not have keyword arguments. Instead, it is fairly common for functions to accept an "options" object as their final positional parameter, containing key-value pairs. JS does not differentiate between "items" and "attributes". They are all just properties on an object, accessed with either square brackets obj['propertyName'] or dot notation obj.propertyName. A JS object literal is kind of similar to a dictionary in python, but JS also now has Map and Set classes. JS has a contextual this keyword, instead of a conventionally-named self parameter for object methods. Methods are not auto-bound to objects like they are in python. The this keyword is provided to a method at call-time - for example if you call someObj.someMethod() or someObj['someMethod']() the dot notation and square bracket notation implicitly provides someObj as the value of this inside someMethod. However in the following code: let method = someObj.someMethod; method(); The this keyword will not be someObj - it will either be the global object or undefined depending on if you are using strict mode. Function objects also have call, apply, and bind methods which can be used to explicitly set the value of this. JS does not have magic methods like python has - so you can't override the behavior of builtin operators like you can in python. For example the === operator always compares values by strict equality (same type and value for primitives, referential equality for objects). JS classes do not support multiple inheritance, though multiple inheritance is possible via object prototypes. JS has a for...in loop as well as a for...of loop. The for...of loop is the one that works like for...in in python, which is easy to mix up. JS has both a null primitive and an undefined primitive, as opposed to Python's singular None. Obviously there are syntax differences - python uses a much more minimalist, significant-whitespace syntax, while JS has a more C-like syntax with more brackets, parens, semicolons, etc. And of course there are various other differences, but these are the ones that I think are most likely to trip you up when learning JS coming from a Python background. Answer from Deleted User on reddit.com
🌐
Reddit
reddit.com › r/learnpython › learning javascript after python
r/learnpython on Reddit: Learning Javascript after Python
October 22, 2021 -

Two things strike me with Javascript as opposed to Python (obviously, caveats apply...)

  1. Learning Javascript to enable the web is far more practical than learning a Python GUI.

  2. All of the extra steps in Javascript when it comes to functional programming, yuck!

Top answer
1 of 5
42
I’m going the ofher way, learning python from scratch as a snr. js stack dev. Don’t mind python but there’s quirks to every language. I generally don’t find the tooling as satisfying in python yet, but I do like the fluency of the language. I like that I write it once and can expect it to do what I think it’s gonna do. I’m also not yet used to indentation mattering as much, not a huge fan but again; quirk of the language. Tips I’d give python devs learning JS: stay the hell away from frameworks until you’re comfortable with the core language, learn es6/typescript. learn by doing, find a project and work out how to spin it up, then find flaws and see what JS has to offer to improve in those areas. you’ll never learn it all, stick to making stuff that works/solves your problem. learn about javascript’s weird and predicable but not expected scoping rules pick up a typed form of JS (typescript/es6 with types) set up eslint with recommended(s) and prettier so you get the style of pretty-good js. learn the es6 way of doing something before the library-laden way. (Like the pyhonic way but for js) spend time on closures, async/await, lambdas, scoping, destructuring and Promise patterns (all, race, allResolved, etc), oh and coercion. look at what your ts/es6 transpiles down to (unminified) to get an idea of how JS does stuff under the hood. learn about tooling (node, npm, nps, jest, nyc, eslint, prettier, webpack/a bundler) learn about number/decimal handling if you plan on doing any math you need to trust (financial), see decimal.js & similar. Run “0.1 + 0.2” if you’re not sure why. learn about all the crazy places you can deploy JS (browser, node, electron, capcitor, etc). If you’re picking a base framework for front-end dev the answer is probably react. The State of JS survey results can guide you on what frameworks and libraries might be worth picking up. Good luck and welcome to ordered chaos.
2 of 5
37
Looping through an array in Javascript for the first time after doing it in Python for months was just, like, whaaaat.
🌐
Reddit
reddit.com › r/learnjavascript › how long it takes to learn javascript if i come from a python background?
r/learnjavascript on Reddit: How long it takes to learn Javascript if I come from a Python background?
September 24, 2021 -

At my job right now I work with Python (intermediate to advanced knowledge) and SQL (advanced knowledge) and some R but I'd like to switch career and learn Javascript.
I wonder how long it takes to learn Javascript (enough to pass jobs interviews) if I study it 3 hours per day and I'd like to know what frameworks should I focus on for better career prospects.

Thanks you!

Top answer
1 of 4
7
Modern JavaScript and Python have a lot in common - for example the iteration protocol, generators, module import syntax, and async/await syntax should feel pretty similar. JS does not have comprehension syntax (e.g. the list, dictionary, set, and generator comprehensions available in Python). It is much more common to use functional programming patterns. Arrow functions in JS are analogous to lambdas in python. JS functions do not have keyword arguments. Instead, it is fairly common for functions to accept an "options" object as their final positional parameter, containing key-value pairs. JS does not differentiate between "items" and "attributes". They are all just properties on an object, accessed with either square brackets obj['propertyName'] or dot notation obj.propertyName. A JS object literal is kind of similar to a dictionary in python, but JS also now has Map and Set classes. JS has a contextual this keyword, instead of a conventionally-named self parameter for object methods. Methods are not auto-bound to objects like they are in python. The this keyword is provided to a method at call-time - for example if you call someObj.someMethod() or someObj['someMethod']() the dot notation and square bracket notation implicitly provides someObj as the value of this inside someMethod. However in the following code: let method = someObj.someMethod; method(); The this keyword will not be someObj - it will either be the global object or undefined depending on if you are using strict mode. Function objects also have call, apply, and bind methods which can be used to explicitly set the value of this. JS does not have magic methods like python has - so you can't override the behavior of builtin operators like you can in python. For example the === operator always compares values by strict equality (same type and value for primitives, referential equality for objects). JS classes do not support multiple inheritance, though multiple inheritance is possible via object prototypes. JS has a for...in loop as well as a for...of loop. The for...of loop is the one that works like for...in in python, which is easy to mix up. JS has both a null primitive and an undefined primitive, as opposed to Python's singular None. Obviously there are syntax differences - python uses a much more minimalist, significant-whitespace syntax, while JS has a more C-like syntax with more brackets, parens, semicolons, etc. And of course there are various other differences, but these are the ones that I think are most likely to trip you up when learning JS coming from a Python background.
2 of 4
4
I mean... it's different for different people, but if you know Python you should be able to pick up js relatively quickly. Maybe a couple months then start applying to jobs? React is probably still the biggest framework and best for job prospects.
🌐
Reddit
reddit.com › r/learnprogramming › after learning python, html and css to a basic level how long will take to learn js, react etc to become a front end dev?
r/learnprogramming on Reddit: After learning python, html and css to a basic level how long will take to learn js, react etc to become a front end dev?
January 9, 2023 -

Is python similar to javascript will I be able to pick up everything fairly quickly? I have been learning python for a couple of weeks now and I'm slowly gaining an understanding. I plan on sticking to learning html, css and python for a month or two more than try and learn some javascript and react, I actually first started on js but skimmed through html, css quickly and then javascript hit me pretty hard then life got in the way. So I started with python one year later and feel much better, perhaps my original approach was poor. Also eventually I was thinking about full stack so thats why I thought python was quite a good choice for back end.

Thank You.

🌐
Reddit
reddit.com › r/learnprogramming › how hard is javascript to learn after wetting my feet in python?
r/learnprogramming on Reddit: How hard is JavaScript to learn after wetting my feet in Python?
July 31, 2020 -

I'm beginning to feel mildly competent with Python, enough that I can debug my code and understand the documentation and some of the core conceptual logic of Py.

For the project I am working on the next step is to get my python code into a web app, I am looking at just using Django because it uses Python language but I feel JavaScript (HTML, CSS doesn't worry me) may be more beneficial in the long run (skills and project-wise).

I see lots of people saying JS is hard to learn and understand, should I invest the time now? Or can Django get me a pretty decent responsive website for the near term? (The sites main functions will be looking at a map of venues around the user's location that are drawn from a database (I have used SQLite3) allow users to login and submit recommendations which are then mapped).

I'd ideally like to turn this project into an IOS and Android App in the medium term too.

EDIT: Thanks for the phenomenal advice everyone! Hopefully this I helpful to others too.

🌐
Reddit
reddit.com › r/learnprogramming › realistically how long will it take to learn javascript?
r/learnprogramming on Reddit: Realistically how long will it take to learn JavaScript?
November 21, 2021 -

And after being a decent bit knowledgeable what other languages should I learn? How many would be needed to be “Job Ready” ?

side questions, whats the difference between Java and JavaScript?

Top answer
1 of 23
59
Java and JavaScript are unrelated languages. JavaScript is so named because Java was originally supposed to be the language of the web, so it’s part marketing and partly an attempt to appease the Sun execs who wanted everyone to be using Java. How long it will take to learn depends on your aptitude and focus. You can learn all the fundamentals in a couple of weeks, but like chess it can take a lifetime to master. I’m still learning new tricks 20 years after first picking it up. You can be job-ready with just JavaScript. JavaScript on the server is called Node, and it actually makes a pretty fine server architecture. Ruby is quite fun for an alternative perspective, as is Python. I don’t love Java personally, but it’s definitely worth learning. You’ll find, once you’ve learned a couple of languages, you can pick up new ones fairly easily.
2 of 23
26
Java and JavaScript are for all intents and purposes entirely different things. The naming of them is a historical artefact and nothing more; they were never related except by some vague "run this code anywhere" intentions. If you're at an employable level in other languages then you already have a great advantage in learning JS. The core CS competencies don't really change between languages, although there will be a lot of web-specific stuff to familiarize yourself with. Go check out the job listings in your target market. My guess is that most jobs are not going to be looking for pure JS devs, but rather people with experience in contemporary front-end frameworks like React/Vue/Angular. This complicates things; those frameworks are about as complex to learn as JS itself and you should not discount the time it takes to learn them if you need to. If you can devote your full-time attention to learning, I think you could build a working knowledge of JS in about a month (including a basic project to showcase your capability). If you can do 4 hours a day, perhaps two months to be safe. If you need to be able to manage frameworks as well, add another month at full time or two and part-time. These are pessimistic estimates based on my experience training web developers up for junior/intern level roles (assuming you already know how to program) so you may find yourself ready to go earlier.
🌐
Reddit
reddit.com › r/learnjavascript › how long does it take to learn javascript? (i mean, just an estimate)
r/learnjavascript on Reddit: How long does it take to learn JavaScript? (I mean, just an estimate)
May 24, 2020 -

To all JS developers, how long did it take you to learn JavaScript. Also, how long did it take you to land your first JS developer job. Btw, what else did you need to learn other than HTML, CSS and JS ?

Thanks in advance :)

Find elsewhere
🌐
Reddit
reddit.com › r/learnprogramming › how long would it take me to learn javascript if i practice 10-20 minutes a day
r/learnprogramming on Reddit: How long would it take me to Learn JavaScript if I practice 10-20 minutes a day
January 9, 2024 -

Hello! I’m currently working on learning html and CSS but I’m wondering once I move on to JavaScript how often should I practice and how long? Right now I’m following the ASAP front end course but are there other options I should consider instead when I move onto JavaScript? I don’t have money to spend on courses right now.

🌐
Reddit
reddit.com › r/learnjavascript › how long did it take to learn js?
r/learnjavascript on Reddit: How long did it take to learn js?
July 3, 2022 -

For me when I started html and css I looked on google and it said it can take a couple months but i did it in 2 weeks and learned how to make a basic website. Now coders have told me to learn js next and said it can take up to 9 months which I dont know if it will take me. How long did it take you?

Top answer
1 of 8
20
Nobody has ever learned JS. You just gradually move along a spectrum where it makes a fool of you less and less. On a more practical note, so long as you know a sufficient amount to make work the thing you want to work in the here-and-now, that's all you ever need in any language. What amount that represents is a "how long is a piece of string?" question. But there's a hint of truth in my sarcasm - nobody is expert in everything. Computer programming is a journey that never ends. Every language has new features added over time and you have to move forward to stand still, so worry less about when you'll get to the end of the journey and more about just improving your skills day by day, week by week.
2 of 8
4
You can pick up the basics pretty quickly, maybe in a month or less if you are dedicated. However, going from those basics to "I built something useful" is usually a pretty big step. In my experience, I spent a little over a year self-teaching part-time, which got me some Python, JavaScript, HTML, and CSS, but I didn't really know how to build anything. Then I did a three-month full-time bootcamp, and suddenly the whole workflow clicked. I started working professionally a month later. My basic approach anytime I need to learn something new these days has three basic steps: Intro tutorials, preferably interactive, but maybe books or videos. Trying to cram enough knowledge that I can write a little something without constantly checking documentation. Toy problems. These are little 1-2 hour challenges you can find on sites like CodeWars or LeetCode . Doing one every day or so really helps drill the knowledge and get me to a level of fluency. Build something. Usually this is something for work, but sometimes a fun side project. This is where I am going to acquire real world skills you don't get in toy problems or tutorials and really cement everything down.
🌐
Reddit
reddit.com › r/javascript › [askjs] can i learn javascript in 10 days?
r/javascript on Reddit: [AskJS] can i learn javascript in 10 days?
December 1, 2023 -

i am currently job hunting. And a friend of mine told me that the company he is working in now, is going to hire new employees next month. he said he would put in a referal for me. But i role would be in web development. And i dont know javascript. The languages i know are Python, C, C++, MySQL and DSA. Do you think I can learn Javascript in 10 days to crack the interview?

🌐
Quora
quora.com › How-long-does-it-take-me-to-learn-JavaScript-if-I-know-Java-python-and-HTML
How long does it take me to learn JavaScript if I know Java, python, and HTML? - Quora
Infact most of the programming languages have nothing to do with each other except for the syntax (exception maybe Python). If you know the general syntax of programming then you can learn the syntax of any language within a day ...
🌐
Learnjavascript
blog.learnjavascript.online › posts › how-long-to-learn-javascript
How long does it take to Learn JavaScript? - Learn JavaScript Blog
June 28, 2025 - You can expect to learn JavaScript at the beginner level in 3 to 6 months. Again, this is a rough estimate and can vary based on the time you can dedicate to learning, your learning style, and the resources you use.
🌐
Reddit
reddit.com › r/learnprogramming › how easy is it to learn javascript after learning beginner level python?
r/learnprogramming on Reddit: How easy is it to learn JavaScript after learning beginner level python?
September 24, 2015 - Once you learn one language, most languages become easier to grasp. ... JavaScript is one of the best languages for people to start on with no programming experience, so if you already have a grasp on the basics (arrays, loops, functions, etc...) then you should be well.
🌐
Reddit
reddit.com › r/python › how long would it take to learn python for an experienced programmer?
r/Python on Reddit: How long would it take to learn Python for an experienced programmer?
December 25, 2019 -

I've been doing full stack Javascript for a while, I also know C# and C++. I know Python basics from having looked at code etc, after all its very readable but haven't done much coding.

I'll be honest, my current work doesn't really have Python projects, and I really want to learn because 1) its a good thing and I'm sure I will find uses for it, but mainly 2) I want to use it for technical coding interviews.

I really don't want to use C++, C# or god forbid Java (the opposite of terse). In the past I've used ES6 also and its generally fine but some companies have the impression that its not a 'real' language (which is nonsense). Anyway Python is even more terse/readable (well except for lambdas) and has more data structs (like queues, heaps) that are often used in interviews.

Just to make it clear, I'm not trying to 'cheat' or memorize. I want to learn the language but with a focus on solving questions like you see in leetcode vs e.g doing ML or data science. Things like list comprehensions etc seem very useful. JS ES6 and Python seem very similar in many ways so I think this will come down to really understanding the 'Pythonic' way of doing things after learning the syntax etc.

🌐
Reddit
reddit.com › r/learnprogramming › how long should it take me to learn javascript :( ?
r/learnprogramming on Reddit: How long should it take me to learn javascript :( ?
November 1, 2024 -

I'm using the ultimate react course on udemy after work and I'm finding it so hard for a number of reasons.

  1. Its hard to find time after work, and I have cut down my time in the gym to accomodate learning

  2. When I do start I'm quite tired

  3. I can only do one section a day on my days off because I get wiped

I'm only on section 6 because it takes me so long to work through the code with him. Should I even bother working through the problems with him and only attempt the challenges?

I feel like such a fucking idiot and I am starting to have no free time.

🌐
Reddit
reddit.com › r/learnprogramming › best way to learn javascript and how long does it take?
r/learnprogramming on Reddit: Best Way to Learn JavaScript and How Long Does It Take?
August 28, 2024 -

Hey everyone! I'm looking to learn JavaScript and was wondering how long it typically takes to get a good grasp of it. Also, what are the most important concepts I should focus on when starting out? Should I prioritize learning objects or something else?I want to avoid getting stuck in "tutorial hell" on YouTube, so what’s the most effective way to learn a programming language like JavaScript without relying too much on tutorials? Lastly, has anyone used Codecademy.com for learning JavaScript or other languages? Is it a good platform to learn from? Any advice would be appreciated!

🌐
Quora
quora.com › How-many-days-does-Python-programming-language-take-to-learn-after-learning-JavaScript
How many days does Python programming language take to learn after learning JavaScript? - Quora
Answer (1 of 2): I think it may be one month because you already learned complexity langugaue like java script python is more flexible less complexicity in the syntax , indentication basing on your skill if you pay attention stick to it you ...