I would use the language you are most comfortable in. JS is fine, I don’t think Python is inherently faster to write than most other languages. Also your confusing time complexity with runtime. Time complexity is how the time it takes your program to run scales with the size of the inputs, it’s independent of language choice. As for runtime I would say JS is generally faster than Python but for an interview I wouldn’t worry about this at all. Answer from power83kg on reddit.com
🌐
Reddit
reddit.com › r/cscareerquestions › python vs javascript?
r/cscareerquestions on Reddit: Python vs Javascript?
October 20, 2018 -

What would you pick for technical whiteboard intrviews? (strictly for this use - I'm not trying to compare the 2 languages here, both are great)

I know C++ and Java but haven't used them for a while. Know JS (ES6) very well and love using it and IMO its a great choice as its so concise and faster to write.

Python is even more concise. Most answers on Leetcode the Python version is the shortest and usually easy to read too.

I know Python basics and can probably pick it up. Is it worth it just for this?

For those who know both, thoughts?

🌐
InterviewBit
interviewbit.com › compare › javascript vs python: what’s the difference? [2023]
Javascript Vs Python: What’s The Difference? [2023] - InterviewBit
July 25, 2023 - Full Stack Support: Fullstack JavaScript is the most used framework of choice since it requires developers to learn only one language. MERN (Mongo Express React Node) and MEAN (Mongo Express Angular Node). What makes Python so unique is that the scientific community loves it. It has become the de-facto standard for people working in Artificial Intelligence, Machine Learning, Data Science, Academics, Computer Vision, Image Processing and even biology.
🌐
Tech Interview Handbook
techinterviewhandbook.org › picking a programming language
Which programming language to use for coding interviews | Tech Interview Handbook
1 month ago - Some languages are just more suited for interviews - higher level languages like Python or Java provide standard library functions and data structures which allow you to translate solution to code more easily.
🌐
Medium
imjoecollins.medium.com › python-is-the-best-programming-language-for-interviewing-735fb4f32bcc
Python is the Best Programming Language for Interviewing | by Joe Collins | Medium
November 17, 2020 - Python is the Best Programming Language for Interviewing Don’t use javascript. Learning enough python for interviewing will take 12–17 hours and will improve your chances of receiving an …
🌐
Codementor
codementor.io › community › use python in interviews, please
Use Python in Interviews, Please | Codementor
October 3, 2018 - It's not too bad a language to use, but when you're doing algorithmic problems I find that the built-in's in Python (especially sets) are just slightly better and are easier to work with than in JS.
🌐
Reddit
reddit.com › r/python › python vs javascript for technical interviews?
r/Python on Reddit: Python vs Javascript for technical interviews?
October 20, 2018 -

What would you pick for technical whiteboard intrviews? (strictly for this use - I'm not trying to compare the 2 languages here, both are great)

I know C++ and Java but haven't used them for a while. Know JS (ES6) very well and love using it and IMO its a great choice as its so concise and faster to write.

Python is even more concise. Most answers on Leetcode the Python version is the shortest and usually easy to read too.

I know Python basics and can probably pick it up. Is it worth it just for this?

For those who know both, thoughts?

🌐
freeCodeCamp
forum.freecodecamp.org › contributors
Request for enabling Python in Coding Interview Prep and Data Structures - Contributors - The freeCodeCamp Forum
May 11, 2023 - Javascript might not be the most optimal choice for coding in interviews and Data Structures and Algorithms. I am requesting Python as a Language choice as it is easy to use and understand and commonly used on freeCodeCa…
Find elsewhere
🌐
Hao's Learning Log
blog.hao.dev › the-best-programming-language-to-use-in-coding-interviews
The best programming language to use in coding interviews · Hao's learning log
April 5, 2022 - To demonstrate my point further, here is a comparison between Python and JavaScript for finding the intersections between two arrays. It is not just that the Python code is shorter; the JavaScript code is also harder to read and understand. All ...
🌐
YouTube
youtube.com › codeflex
javascript vs python for coding interviews - YouTube
Download this code from https://codegive.com Coding interviews are a crucial aspect of the job application process for many software engineering positions. T...
Published   January 19, 2024
Views   0
🌐
Quora
quora.com › Is-JavaScript-a-popular-good-programming-language-for-coding-interviews
Is JavaScript a popular/good programming language for coding interviews? - Quora
Answer (1 of 7): JavaScript is a great language for interviews (from a candidate’s point of view), because: * JS is very expressive / it’s possible to do things quickly with JavaScript.
🌐
Blind
teamblind.com › post › Leetcode-in-JavaScript-vs-Python-idM4DXj7
Leetcode in JavaScript vs Python? | Tech Industry - Blind
April 19, 2022 - Hi guys, I have a Google L3 SWE interview in 3 months. Right now, my resume is heavily focused on front-end (HTML, CSS, JavaScript). Apparently, I have 3 months to study my ass off in order to pass LC coding interview. But, I have not yet solved a s...
🌐
Karat
karat.com › home › is python swallowing the technical interview?
Is Python swallowing the technical interview? - Karat
November 10, 2023 - In 2021, Python again dominated the University Recruiting landscape increasing by nearly 2 percentage points compared to 2020. Java and C++ also saw modest gains. Interestingly, while JavaScript is the #1 most popular programming language (68.6% of professional developers use JS, via Stack Overflow), its use in early career interviews remains minimal, with under 2% of intern/new grad candidates using JavaScript for their technical interviews this year.
🌐
Quora
quora.com › Do-web-developers-front-end-engineers-generally-choose-JavaScript-as-their-language-of-choice-for-technical-interviews-or-do-they-opt-for-languages-like-C-Java-Python
Do web developers/front-end engineers generally choose JavaScript as their language of choice for technical interviews or do they opt for languages like C++/Java/Python? - Quora
Answer (1 of 2): When candidates apply for a role as a front-end engineer, they may not have the choice of the language. If there’s an interview which is focused on front-end or web skills (which is a practice which may vary company by company), then the candidate may be forced to use JavaScript ...
🌐
DEV Community
dev.to › alex_hunter_44f4c9ed6671e › best-programming-language-for-coding-interviews-in-2026-python-vs-java-vs-c-55ig
Best Programming Language for Coding Interviews in 2026 (Python vs Java vs C++) - DEV Community
January 16, 2026 - For some system design or optimization discussions, C++ knowledge is relevant. But this doesn't mean you should use C++ for coding problems. ... My take: Use JavaScript only if interviewing for frontend roles at JavaScript-focused companies.
🌐
Blind
teamblind.com › tech › python vs javascript
Python vs JavaScript | Tech Industry - Blind
February 16, 2020 - At the end of the day my recommendation ... screen. ... View 1 more reply... ... If you really must, use python. But java by far is better for interviews....
🌐
JavaScript in Plain English
javascript.plainenglish.io › why-you-should-use-javascript-for-your-technical-interviews-d3fb34cb0ba
Why you Should use JavaScript for your Technical Interviews | by Emmanuella Aninye | JavaScript in Plain English
May 20, 2020 - The majority of your energy during an interview shouldn’t be spent remembering language-specific syntax, it should be spent talking through and crafting your algorithm. Before we get into the advantages of JavaScript and debunking some of those claims, let’s just clear the air. JS is a Turing Complete Language meaning it can be used to solve any computational problem — this puts it in the realm of languages like Java, C, C++, Python, and many more.
🌐
Reddit
reddit.com › r/cscareerquestions › worth learning python instead of using javascript for whiteboard?
r/cscareerquestions on Reddit: Worth learning Python instead of using JavaScript for whiteboard?
October 14, 2020 -

I'm planning on applying again in around 5 or 6 months. I'm most familiar with JS and have only done some Python professionally. I know the general advice is to use whatever is most familiar, but given the amount of prep time I feel it's worth considering the tradeoffs before committing.

Python pros:

  • Even simpler syntax, no brackets or semicolons

  • Seems generally preferred over JS. An Amazon recruiter once requested me to put Python on my resume. I believe Google also prefers Python over JS?

  • Has better built-in data structures

Top answer
1 of 8
16
I’ve heard Python described as pseudo code with formatting, so to me it always seemed ideal for whiteboard interviews. It’s really useful and versatile beyond that, too, so I’d say go for it if you have the time.
2 of 8
9
I know the general advice is to use whatever is most familiar I agree. If you already had equal knowledge of JS and Python, then I'd say that using Python makes more sense, possibly excluding jobs that use JS and not Python. But there are better ways to spend your time than learning a language specifically for the purpose of interviewing. At most places, coding interviews don't stress knowledge of a specific language; they stress knowledge of concepts, and competence at solving a problem by using a program. You probably won't succeed in learning Python as well as you know your favorite language if you are just using it for the purpose of interviewing. Coding in a less familiar language is likely to hinder you more than coding in a slightly more convenient-for-interviewing language will help you. When I interview, I do not care at all whether a candidate uses JS or Python, and I would not care at all if the candidate asked to assume the existence of a common data structure as a class in JS. I would also stop the candidate if they appeared to be trying to code a complex data structure by hand that they clearly knew about conceptually, and tell them to just assume its existence. On the other hand, if you want to learn Python because you want to actually use it at your job or for a project, then that's different. That's a worthwhile thing to do.
🌐
DEV Community
dev.to › braeden › why-javascript-is-actually-a-great-leetcode-interview-language-34g1
Why JavaScript is actually a great LeetCode/Interview language - DEV Community
September 23, 2020 - C++ has a bit more convolution with memory management and iterators, but trades that for speed. Java is notoriously verbose, which is often against the spirit of fast iteration during interviews. On the other hand, people often like Python since it's similar to writing pseudocode, it has a super beginner friendly community, and is fast to iterate upon. I'm going to present some reasons (in no particular order) why JavaScript might be the best of both worlds for coding challenges (but especially as an alternative to Python).
🌐
Byte by Byte
byte-by-byte.com › home › choose the right language for your coding interview
Choose the right language for your coding interview - Byte by Byte
January 15, 2021 - You (probably) wouldn’t use C++ for your website, and you wouldn’t use Javascript for statistical analysis. In the same way, some languages are better for interviews. Since different languages have different built in types and different paradigms, the language you choose can drastically change not only how you solve the problem, but what problems you get asked. For example, popular problems in Java involve modifying linked lists. However, in Python lists are a built in datatype, so those problems don’t make a whole lot of sense.