Sign in

Sometimes we want to change the value that javascript’s this keyword is pointing to since the this is not always pointing to what we want. So Javascript provides a few methods so that we can explicitly choose what this is pointing. Let’s dive into the call, apply and bind 🤔

call

The call() method calls a function with a given this value and arguments provided…


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is a great concept to know although it is not a requirement. I decided to learn and explain these concepts one by one.

Classes are a template for creating objects. They encapsulate data with code to work on that data. …


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is a great concept to know although it is not a requirement. I decided to learn and explain these concepts one by one.


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is a great concept to know although it is not a requirement. I decided to learn and explain these concepts one by one.

A bitwise operator treats their operands as a set of 32 bits (zeros and ones), rather than as decimal, hexadecimal, or octal numbers. 32 bits mean it has 32 of 0 or 1 like this 01010101010101010101010101010101. …


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is a great concept to know although it is not a requirement. I decided to learn and explain these concepts one by one.

Index
1) What is JavaScript Engine?
- Definition
- Components

2) How does JavaScript Engine work under the hood?
- Compilation vs Interpretation
- Just-In-Time compilation
- What does the javascript engine do?

3) Conclusion

What is JavaScript Engine?

JavaScript engine means a computer program that executes JavaScript code. There’s various kind of JavaScript engine…


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is great concepts to know although it is not a requirement. So i decided to learn and explain these concepts one by one.

#10. setTimeout, setInterval and requestAnimationFrame

The setTimeout method sets a timer which execute a function once the timer expires.

When we execute this function hi is logged on the console after 1000 millisecond.

Or ‘hi’ can be passed into third parameter


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is great concepts to know although it is not a requirement. So i decided to learn and explain these concepts one by one.

#9. Callback Queue and Event Loop

If you execute this code, the result will be like below.


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is great concepts to know although it is not a requirement. So i decided to learn and explain these concepts one by one.

#8. IIFE and Module

If you want to make a variable that can not be accessed globally, you can declare a variable in the local scope. However, how do we make it so that our function also cannot be accessed? That’s where IIFE comes in!!

IIFE (Immediately Invoked Function Expression) refers to a function that…


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is great concepts to know although it is not a requirement. So i decided to learn and explain these concepts one by one.

#7. Expression vs Statement

There’s two kinds of syntatic categories in javascript, statements and expressions.

Expression is a piece of code that resolves to a value. In other words, just something that returns a value.

In above example, equal sign = expects an expression. Since 20 is an expression that…


First of all, this story is based on Stephen Curtis -33 Fundamentals Every Javascript Developer Should Know and you can read it here.
I thought it is great concepts to know although it is not a requirement. So i decided to learn and explain these concepts one by one.

#6. Global scope & Local scope

Scope determines the accessibility of variables and there’s 2 kind of type, global scope and local scope. Variables declared in global scope can be accessed globally no matter where they are, whereas variables declared in local scope can only be accessed locally.

DH KIM

Junior React Front-end Developer, LinkedIn: https://www.linkedin.com/in/dh-kim-733227200/

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