Is JavaScript a compiled language or is it interpreted? And why are people so torn between this simple choice?

We know what are the compiled and interpreted languages, as discussed in the previous article in the series. Let’s look into it in more detail.

TL;DR

If you’re looking for an answer 10 mins before your front-end interview starts — JavaScript is both and say the phrase “Just-In-Time (JIT) Compiler” a couple of times.
You’re welcome!

Let’s quickly get an overview of what these types of languages mean based on the traditional translations —

A compiled language is translated directly into native machine code (imagine a file that only contains 0s and 1s) that the processor can execute. …


Just enough fundamentals to understand JavaScript more deeply; but not enough to claim you are a computer scientist.

Photo by Cookie the Pom on Unsplash

It’s 2020! Everyone is saying developing websites is easy. It is. You learn the basics of HTML and CSS. Done! Now you start learning JavaScript. You can officially say at parties that you create websites.

What is JavaScript?

JavaScript is a synchronous, blocking, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles. Javascript is an exasperating farrago of distortions! [1]

Yeah, of course, it's synchronous and single-threaded and that “farragos” thing… I know that! I think I can start with React now.
[Dramatization based on real-life events]

I don’t know about others but I, sure as hell…


Everyone on the Internet literally wants one thing and it’s f*cking disgusting — your attention… all the time.

Photo by Kelly Sikkema on Unsplash

How much time do you think you spend on your mobile phone?

If you haven’t checked it yet, I say mentally play along.

Personally, I thought it wasn’t more than an hour or so. I could have sworn that on my life. I still mentally kept my answer “around 3 hours”. I have a conscious analytical personality. I checked the “Digital Wellbeing” section on my android phone and — 10 hours!

I don’t have that kind of time! This is not true…


Photo by Aleks Marinkovic on Unsplash

We have the famous Duck Test:

If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck!

Coasting off that, we have Duck Punching (or Monkey Patching) in programming — a technique wherein alterations are made to a dynamic code during runtime without altering the source code.

Here is a great Consolia Comic strip to give you a better understanding in a funnier graphical way (if you’re into that):


To say nothing of the love of the boomers.

Photo by Pratik Gupta on Unsplash

[Thursday | 12.30 pm]
One new match.
23. Works at a Dental College. Gorgeous.
He locks his screen and puts the phone back in his pocket. Finally!

[Thursday | 11.28 pm]
One new match.
He opens her profile. Daaaaaaaamn!!! Screenshot. Share to — 2 people and a group chat.

Typing…

Hey :)

Hits delete.

Wassup! How you doin’?

Before sending, he goes back and opens her Tinder profile for the 13th time today.
Okay, what do we have — 23. Gorgeous. Out of my league. Been to Egypt. WHO THE FUCK GOES TO EGYPT! Rich parents I assume. Favorite music…


I have been out of Zuckerberg’s Pits for a month now and it has been… normal so far. Honestly, I do not have cool or funny anecdotes on the situation.

Photo by Austin Chan on Unsplash

It’s been three whole weeks today since I deleted my Instagram account (and now Facebook too). I know you have questions — 
Was I scared of making myself socially distant from everyone? Yes, I was very scared!
Was I a self-righteous prick about it? Absolutely, yes.
Did I, shamelessly, write a Medium article only to brag about it? Of course.

But the main question is — how do I feel about it today?
So well honestly, it doesn’t feel like a big deal.

I mean it hasn’t been that hard as I thought it would be. Although there are these…


Likes have come down to zero. No more Instagram for me.
Likes have come down to zero. No more Instagram for me.
Photo by Prateek Katyal on Unsplash

After a long time of romanticizing with the idea of leading the life of a digital saint, on December 5th, 2019, I took an impulsive leap and got myself out of one of Mark Zuckerberg’s “The Pit” platforms. Much like in the Dark Knight Rises movie, these pits offer its “prisoners” escape and I took the leap, much like how the boy who escaped did, without the rope.

I would like to think we all have, at least once, thought of getting off all the social media and go complete S-level ninja on our digital footprint. I researched on it…


Photo by Tim Gouw on Unsplash

In the real world, we deal with some really weird problems. I had to. You had to/will have to. It is inevitable. One fine day, I was asked to add a feature on an existing interface. It was starting from a simple checkbox with some state update. Sounds simple.

If you want to read up a little on event propagation in JS, you can check out Part 1 of this article (shameless self plugging ^-^; ).

I added the checkbox markup and it was rendering on the front-end alright. I clicked on the checkbox and there was nothing. No click…


Photo by Henrik Dønnestad on Unsplash

Event Propagation in JavaScript

Events on your webpage cause some action to happen. It brings interactivity to your webpage. For example, the click on a button — it’s an event — “click” event to be precise. So you trigger an event with that click and some action happens.

There are so many events — you have one for changing of some value in a field, you have for scrolling on a page, there are events even for knowing when the mouse enters or leaves a certain element on the page.

There is a flow of these events triggering. Let’s suppose an example of nested…


Photo by Markus Spiske on Unsplash

WordPress is a freakishly popular open-source Content Management System. Built on PHP and MySQL, this web platform can be used to built blogging sites, e-commerce applications and more. It is very powerful and not that difficult to start with.

I won’t waste much of your time on pointless theoretical mumbo-jumbo (for now) and we’ll dive in to our Mission 1 — The Set-Up.

What you’ll need —
- At least a primal knowledge of HTML, CSS and JavaScript
- Basic PHP will come in handy

Side note : Though this is the recommended stack to know before getting started into…

Ekansh Kothiyal

wandering through infinities of Space and Time and looking the world through small ambitious eyes behind prescription glasses

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store