Skip to main content

Command Palette

Search for a command to run...

What do you mean Java and JavaScript aren't related?

It would be like ordering a banana when you wanted a banana milkshake....

Updated
3 min readView as Markdown
What do you mean Java and JavaScript aren't related?
Z

As Operations Director of a global content marketing agency, I hear "sorry if this is a silly question" all too often from employees across all departments.

I share my questions to the Frontend Dev community, as I look to break into the world of Tech 🌎 and who knows... maybe one day I will be able to answer them.

Learning HTML, CSS, Javascript and React

First off, was anyone else confused by this when they first started learning to code?

For a good couple of weeks I was under the impression Java was just a lazy way of saying JavaScript. I even went as far as telling people I was learning Java, when asked which programming language I was covering in my Bootcamp - "doh!".

It's not the same

So what are the key differences between Java and JavaScript?

Well... pretty much all of it, it seems?

According to GeeksForGeeks

JavaScript(JS) is not similar or related to Java. Both the languages have a C like a syntax and are widely used in client-side and server-side web applications, but there are few similarities.

After doing a bit of digging, I think it is easier just to cover off the key differences - as... really there are just not that many similarities:

  • Java is an OOP programming language while JavaScript is an OOP scripting language.
  • Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.
  • Java code needs to be compiled while JavaScript code are all in text.
  • They require different plug-ins

If these bullet points actually mean anything to you, then please comment below.

I often end up in wormholes Googling acronyms, just to understand my original subject matter. I mean what the heck is OOP?!

I also thought JavaScript was a programming language?! My research is just confusing me more. Let's stop and move on.

Basically....

It's different

Right, so which one should I start with if I want to land a career as a Developer?

As you can tell - I've only done a brief dive into researching the differences between them, but from what I have read so far, I remain team JavaScript.

And I swear that isn't (just) because my Bootcamp covers it.

It is because I am interested in Frontend Web Development (the pretty and interactive stuff) rather than Backend Web Development (the server-side, data stuff).

pretty things

JavaScript seems to be the key language used in Frontend Development, along with languages such as HTML, CSS and frameworks/libraries like JQuery, React, Vue, Bootstrap and SASS.

I am due to cover React in my Bootcamp and I have heard it is one of the most popular libraries, with many job openings requesting it. I also really enjoyed putting into practice what I learnt around the Bootstrap framework. The ability to put elements into a responsive grid and quickly create forms was very pleasing!

Screen Shot 2021-07-21 at 20.27.48.png

Java.... you guessed it.... is used in Backend Development. I think JavaScript can also be utilised here (which gives it one up), but other common languages are Python, PHP and Ruby which you can see by popularity below:

Screen Shot 2021-07-21 at 20.31.12.png


Are you team JavaScript? Explain your stance in the comments below.

C

I was today years old when I found out that Java and JavaScript are different 😂

A

Team JavaScript FTW 🙌

I had the same issue trying to tell the difference between both of them when I first started programming. It's going to get even more interesting when you compare functional programming and object-oriented programming.

For a long time I used to believe that working on the back-end and playing around with databases was boring 🤣 But working with the JavaScript runtime environment Node.js made it so much more fun. Once you figure out how to do the routing it starts to "click".

I don't know if you would ever consider working on the back-end but there are many benefits when you become a Full-Stack Developer 😊

1
Z
Zoë B5y ago

Thanks for taking the time to read through and comment Andrew, you have really inspired me this week!

I have heard mixed things about going full-stack, but perhaps these days most people end up doing it out of necessity to build their own applications? I did try Python a few years back and perhaps once i have my grounding in FE I will consider it again. I have seen the data team do some pretty epic stuff with it :)

More from this blog

Z

ZoCodes - No question is a silly question when learning to code

3 posts

A self-taught Frontend Developer, I share my questions with the community as I build in public and look to break into the world of Tech 🌎