10 Things to Master About Javascript Before You Call Yourself a Pro

Elson TC
Before Semicolon
Published in
5 min readOct 14, 2020

--

Javascript has changed a lot over the years and has become one of the most popular languages out there. It is mine and lots of developers' favorite/preferred coding language so here are 10 things you should definitely try to master first.

This & GlobalThis

The “this” is one of the most confusing things about Javascript and with ES2020 we got “globalThis” which definitely helps to streamline things and set a clear distinction between the other “this”.

The reason we got “globalThis” is that in the browser global is the “window”, in NodeJs it is “global” and inside workers its “self”. What a mess right?

Some languages like swift and python call it “self” and others like Java call it “this” but the Javascript “this” behaves differently.

The “this” can refer to the instance of an object or class. It also changes depending on how a function is called. It is the context where you are and also changes when you are in strict vs non-strict mode. Need more reason to truly try to master it?

Object

Almost Everything in Javascript is object. This should be the sole reason to seek to master objects in Javascript but let me tell you more.

--

--

Elson TC
Elson TC

Written by Elson TC

Software Engineer sharing knowledge, experience, and perspective from an employee and personal point of view.

Responses (10)