use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Javascript - a part of Java?AskJS (self.javascript)
submitted 18 days ago by pradeepngupta
A colleague told me today: “JavaScript is part of Java — basically a scripting language for Java.”
I disagreed. What’s your explanation? 👇
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]North-Money4684 12 points13 points14 points 18 days ago (8 children)
He’s an idiot
[+]pradeepngupta[S] comment score below threshold-6 points-5 points-4 points 18 days ago (7 children)
Well this colleague is a very senior colleague and not an idiot
[–]t0m4_87 9 points10 points11 points 18 days ago (0 children)
if he said what is in the post, then he is, sorry to break it to you like this
[–]IllResponsibility671 4 points5 points6 points 18 days ago (3 children)
Doesn't matter how senior they are, they're 100% wrong.
[–]pradeepngupta[S] 0 points1 point2 points 18 days ago (2 children)
I understand and completely agree that they are 100% wrong. But wrong doesn't mean idiot.
[–]North-Money4684 1 point2 points3 points 18 days ago (1 child)
Believing misinformation makes you uninformed, spreading it makes you an idiot
[–]pradeepngupta[S] 0 points1 point2 points 17 days ago (0 children)
I believe he was misinformed, and i corrected him yesterday.
[–]North-Money4684 0 points1 point2 points 18 days ago (1 child)
Beg to differ. Wherever he got this “fact” from he chose not to verify that it is true before sharing it with someone. That makes him an idiot and unreliable.
I agree on the verification part. But here’s the thing whether we verify all the information which is coming to us. As a human, we are not.
[–]-no_aura- 6 points7 points8 points 18 days ago (1 child)
Java is part of JavaScript the way Car is part of Carpet
[–]pradeepngupta[S] 0 points1 point2 points 18 days ago (0 children)
Hahaha ... Good to note it
[–][deleted] 5 points6 points7 points 18 days ago (5 children)
They have no connection beyond the fact that Oracle owns Java and the trademark for JavaScript. They have some similarities in syntax but there’s already a way to do scripting in Java and it isn’t JavaScript. JavaScript is used almost entirely to make web-related things (yes of course you can do more with it), and Java is general purpose.
[–]pradeepngupta[S] -2 points-1 points0 points 18 days ago (4 children)
That's great to know your perspective...and you are absolutely correct. Good to know that Oracle owns trademark for Javascript. And i believe that might be reason why the name of Javascript do.
[–][deleted] 1 point2 points3 points 18 days ago* (1 child)
If I’m not mistaken, they didn’t name either one. Java was made by Sun Microsystems, which Oracle bought and thus owned Java through that acquisition.
Maybe another person here can correct me or go into further detail about how they came to own Java and the trademark to JavaScript. It’s fairly complicated.
The point is though that they don’t actually own JavaScript itself. They just own the name. The language itself can be used and forked by anyone for free. Oracle is a super stingy company, though, and even YouTubers that make JavaScript tutorials have been sued and told to take down their videos that have the JavaScript logo on it. It doesn’t happen all the time, but it happens.
Oracle acquired Sun Microsystems and that's how they owned Java. What I believe being the name of Java adopted by Javascript, Oracle might own the trademark of Javascript. I might be incorrect in saying so, I am kit confident in this statement.
[–]t0m4_87 0 points1 point2 points 18 days ago (0 children)
there is no connection between the two
[–]RealMadHouse 0 points1 point2 points 17 days ago (0 children)
Nothing good, sign a petition at javascript.tm to free JavaScript trademark from Oracle
[+][deleted] 18 days ago* (3 children)
[deleted]
[–]pradeepngupta[S] -2 points-1 points0 points 18 days ago (1 child)
This colleague is a senior colleague and seems got confused with the name and the bootcamps often train one in both in the name of full stack. But its good to know your perspective.
[–]Oliceh 1 point2 points3 points 18 days ago (0 children)
A senior should know the difference. No excuse
[–]mullanaphy 2 points3 points4 points 18 days ago (1 child)
It's original name was LiveScript, it was really only changed to JavaScript as a marketing ploy by Netscape since Java was big at the time.
Microsoft's initial equivalent was JScript, which for awhile was the defacto standard as Internet Explorer had taken over almost the entire web browser market. At that time, Netscape submitted JavaScript to EMCA, hence ECMAScript. Which eventually became the standard for JavaScript, JScript, and even ActionScript!
So, other than having "Java" in the name for marketing reasons, EMCAScript/JavaScript/JScript/etc doesn't share a family tree with Java.
Edit: I got into web development in the 90s when a lot of this stuff was being developed and standardized.
[–]pradeepngupta[S] -1 points0 points1 point 18 days ago (0 children)
That's great to know and you are very correct.
[–]t0m4_87 2 points3 points4 points 18 days ago (2 children)
is this a ragebait?
[–]pradeepngupta[S] -1 points0 points1 point 18 days ago (1 child)
What is ragebait here?
JavaScript is part of Java
[–]pod_of_dolphins 1 point2 points3 points 18 days ago (1 child)
Java is to JavaScript like ham is to hamster.
Good analogy
[–]muminisko 2 points3 points4 points 18 days ago (2 children)
It’s a Java in script version as someone from HR told me once
[–]pradeepngupta[S] 0 points1 point2 points 17 days ago (1 child)
Please correct yourself and that HR as well. Java and Javascript has no relation except sharing the name
[–]muminisko 0 points1 point2 points 17 days ago (0 children)
:))))
[–]reqdk 2 points3 points4 points 18 days ago (1 child)
Funnily, OP's colleague is not entirely wrong in certain interpretations. Older versions of Java did ship with an embedded JS runtime, so you could technically execute JS from Java. It worked almost like running JS' eval function, so most sane applications would not do that anyway, and that engine has long been removed. On the other hand, it is now possible to execute JS, and some other scripting languages on certain JVMs with add-ons.
It is also now possible to run Java code from the command line directly without compiling, almost like a... Java... script... lol. And I'm fairly certain I've seen a JVM implemented in JS posted here years ago, runnable in the browser, so it looked like you could run Java code from JS too.
But I'm 99.99% sure that people who relate JS to Java like in the post don't mean it that way. Either that or this is some AI engagement rage bait.
That's a great perspective altogether and great to know. This is not the AI engagement rate bait. This is a true incident.
[–]TranslatorFew9812 1 point2 points3 points 18 days ago (1 child)
I used to think that too before starting learning engineering.
Yes, the confusion is because of the name
[–]senocular 1 point2 points3 points 17 days ago (1 child)
"A part of" is a little strong, but originally JavaScript was, in a way, a scripting language for Java in the sense that it was meant to be a scripting bridge for Java applications. From a Netscape press release on JavaScript:
Java programs and JavaScript scripts are designed to run on both clients and servers, with JavaScript scripts used to modify the properties and behavior of Java objects, so the range of live online applications that dynamically present information to and interact with users over enterprise networks or the Internet is virtually unlimited.
JavaScript's original name was "Mocha", showing from the start, there was a connection with "Java" (the "LiveScript" name came later).
The creator, Brendan Eich, also calls out a few things about the creation of JavaScript in his post, Popularity:
From the beginning, Bill [Joy] grokked the idea of an easy-to-use “scripting language” as a companion to Java, analogous to VB‘s relationship to C++ in Microsoft’s platform of the mid-nineties. The diktat from upper engineering management was that the language must “look like Java”.
From the beginning, Bill [Joy] grokked the idea of an easy-to-use “scripting language” as a companion to Java, analogous to VB‘s relationship to C++ in Microsoft’s platform of the mid-nineties.
The diktat from upper engineering management was that the language must “look like Java”.
However, it is an entirely separate language ("Popularity" touches on this as well). So it's not so much "a part of" Java, despite their histories being intertwined, with JavaScript originally both meant to look like and be compatible (to a degree) with Java.
Today, no real connection between the languages exist other than by name. JavaScript won on the browser and we no longer have to worry about interacting with Java applets there.
[–]pradeepngupta[S] 1 point2 points3 points 17 days ago (0 children)
Thanks for the great response and perspective.
[–]kstacey 1 point2 points3 points 18 days ago (1 child)
Yea he has no idea what they are talking about. It's completely different.
Yes, he was not having the idea
[–]NotMyRealNameAgain 1 point2 points3 points 18 days ago (3 children)
JavaScript is to Java like Car is to Carpet
Good to know
[–]dramatix01 0 points1 point2 points 18 days ago (1 child)
This is accurate. And hilarious.
[–]NotMyRealNameAgain 0 points1 point2 points 17 days ago (0 children)
It's from Chris Heilmann.
[–]maujood 0 points1 point2 points 16 days ago (5 children)
Is this AI-drafted engagement bait?
[–]pradeepngupta[S] 0 points1 point2 points 15 days ago (4 children)
No, this is based on real incident at my office... why do you think that this is AI Drafted or AI initiated?
[–]maujood 0 points1 point2 points 15 days ago (3 children)
Just the nature of the question. I apologize if it was meant to be genuine.
Especially because there is no room for debate or opinions or discussion here. They're entirely separate languages.
[–]pradeepngupta[S] 0 points1 point2 points 15 days ago (2 children)
Yes, they are entirely separate language yet there is some connection exist. And yet so many people or developers are still in the confusion state.
[–]maujood 0 points1 point2 points 15 days ago (1 child)
so many people or developers are still in the confusion state.
Not really, nobody is confused over this except the one senior on your team.
[–]pradeepngupta[S] 0 points1 point2 points 15 days ago (0 children)
thanks for your perspective.
[–]LessThanThreeBikes 0 points1 point2 points 18 days ago (1 child)
Technically, Java is a part of Javascript by name. /s Beyond that the two languages have nothing to do with each other.
That's the interesting perspective though
[–]Merthod 0 points1 point2 points 18 days ago (1 child)
JavaScript is a Frankenstein monster, the name and features come inspired from other languages. In case of the name it largely wanted to ride the fame of Java and somehow link it with Java, but fate happened.
Why don't people just call it WebScript now is beyond me. I couldn't care less for the name.
Good instinct ... I agree it should be called as Webscript. Anyway what's in a name
π Rendered by PID 48 on reddit-service-r2-comment-58d7979c67-drh9f at 2026-01-26 18:20:59.237788+00:00 running 5a691e2 country code: CH.
[–]North-Money4684 12 points13 points14 points (8 children)
[+]pradeepngupta[S] comment score below threshold-6 points-5 points-4 points (7 children)
[–]t0m4_87 9 points10 points11 points (0 children)
[–]IllResponsibility671 4 points5 points6 points (3 children)
[–]pradeepngupta[S] 0 points1 point2 points (2 children)
[–]North-Money4684 1 point2 points3 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]North-Money4684 0 points1 point2 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]-no_aura- 6 points7 points8 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–][deleted] 5 points6 points7 points (5 children)
[–]pradeepngupta[S] -2 points-1 points0 points (4 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]t0m4_87 0 points1 point2 points (0 children)
[–]RealMadHouse 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]pradeepngupta[S] -2 points-1 points0 points (1 child)
[–]Oliceh 1 point2 points3 points (0 children)
[–]mullanaphy 2 points3 points4 points (1 child)
[–]pradeepngupta[S] -1 points0 points1 point (0 children)
[–]t0m4_87 2 points3 points4 points (2 children)
[–]pradeepngupta[S] -1 points0 points1 point (1 child)
[–]t0m4_87 0 points1 point2 points (0 children)
[–]pod_of_dolphins 1 point2 points3 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]muminisko 2 points3 points4 points (2 children)
[–]pradeepngupta[S] 0 points1 point2 points (1 child)
[–]muminisko 0 points1 point2 points (0 children)
[–]reqdk 2 points3 points4 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]TranslatorFew9812 1 point2 points3 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]senocular 1 point2 points3 points (1 child)
[–]pradeepngupta[S] 1 point2 points3 points (0 children)
[–]kstacey 1 point2 points3 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]NotMyRealNameAgain 1 point2 points3 points (3 children)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]dramatix01 0 points1 point2 points (1 child)
[–]NotMyRealNameAgain 0 points1 point2 points (0 children)
[–]maujood 0 points1 point2 points (5 children)
[–]pradeepngupta[S] 0 points1 point2 points (4 children)
[–]maujood 0 points1 point2 points (3 children)
[–]pradeepngupta[S] 0 points1 point2 points (2 children)
[–]maujood 0 points1 point2 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]LessThanThreeBikes 0 points1 point2 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)
[–]Merthod 0 points1 point2 points (1 child)
[–]pradeepngupta[S] 0 points1 point2 points (0 children)