How JavaScript Works 🔥& Execution Context | Namaste JavaScript Ep.1

preview_player
Показать описание
Understanding how JavaScript works behind the scenes, inside the JS Engine will make you a better developer. This video covers details about Execution Context Creation and its 2 phases: Memory Allocation Phase and the Code Execution phase.

This video also answers questions about-
Is Javascript Single-threaded or multi-threaded?
Is JS Synchronous or asynchronous?

Many JavaScript developers are confused about these small concepts. They mess up their heads reading a lot of JS blogs and articles here and there. To help everyone, here's a JS video tutorial with all the info here at once.

Topics Covered:
00:00 - Introduction to how JS works behind the scenes
00:15 - Execution Context in JS
00:42 - Variable Environment of Execution Context
01:35 - Thread of Execution in JavaScript
02:11 - Is JavaScript synchronous or asynchronous?
02:32 - Is JavaScript a single-threaded language or multi-threaded?
03:19 - Recap of Execution Context Components
04:00 - Teaser of the next video - How code is executed in JS?
04:15 - Thank you for watching Namaste JavaScript 🙏

Everything is covered in the video with all detail, so watch it till the end. 😇

Support this video series, NOT BY MONEY, but by sharing it with your friends. 🙏
I'll give my best to come up with great content and everything absolutely for free on YouTube. 😊

If you are active on Social Media,
please give a shoutout to Namaste JavaScript and help me reach more people. 🙏

Cheers,
Akshay Saini

Would love to Stay Connected with you ❤️

#NamasteJS #AkshaySaini
Рекомендации по теме
Комментарии
Автор

How was the video? Are you feeling excited? Please comment below. ❤️

akshaymarch
Автор

Here is the notes guys hope it will hep you to save your time-

*How JavaScript works?
Ans-Everything in JavaScript happens inside an "execution context".

Execution context has two component
1)memory component[variable environment]
-This is the place where all variables and functions are stored as key value pairs. eg-{key: value || n:2;}

2)code component[Thread of execution]
-This is the place where code is executed one line at a time

Note-
*JavaScript is a synchronous single-threaded language

-Single threaded means JavaScript can execute once command at a time
-Synchronous single-threaded that means JavaScript can execute one command at a time in a specific order.

abhigyan
Автор

I am indirectly thanking to the person who recommended this channel on linkedln.

_brajeshmishra
Автор

Thank you so much for this series! I've been writing JS for years as a self-taught FED. I always get so nervous in technical interviews because, while I know how to write working code, I never really could explain why things work the way they do. Just watching you explain things in a clear and passionate way makes me feel like all the holes in my Swiss cheese brain are being filled in, and I feel more confident that I can explain now, what things are called and why they work the way they work. You, sir, rock!

innerurge
Автор

Writing to keep it in my mind:
JavaScript is a synchronous single-threaded language.
When script is run an execution context is created. It contains two blocks:
One memory block and second code block.
Memory block contains all the variables and functions as key value pairs and code blocks is where all the code is executed line by line.
Memory block is also called environment variable and the code block is known as thread of execution.
Thanks for this video Lecture. ✨

cswithabdullah
Автор

That whole thing is called as execution context inside that there two things
1.Memory component
2.Code component
In memory component variable and functions values can be stored in a key value format.
Code component is a place where whole JavaScript code is executed
Memory component is also called as variable environment
And code component is also called as thread of execution.

Thank you Sir ❤️👍👍👍👍

shaikhzeenat
Автор

When the teacher is himself so energetic then students would be for sure!! Thank you so much for your efforts 🙏

shalukumari
Автор

Your way of explaining things makes it so easily understandable! Huge applause to you bro- I’m a civil engineer and new to programming languages- transiting to IT- many friends suggested me to watch your tutorials, now I know why. Your genuine excitement makes it exciting for me to watch & learn more! Cheers for this bro & NAMASTE 🙏🏼

SiriusBlu
Автор

Came here from your interview on clousers. Man I love your vibe. I'm gonna get drunk and binge watch this series tonight.🤩🤩

kalyansreekarjhade
Автор

Being a front end Developer for nearly 4+ years now, I still think I don't know enough of JS or nothing about JS as you have described in this video . You have made me fallen in love with this language once more. And to add with you Too :)

ankitapaul
Автор

"JAVASCRIPT IS A SYNCHRONOUS SINGLE-THREADED LANGUAGE!"

satishnarayan
Автор

You can't become a computer engineer without indian youtubers. Thanks Akshay for this amazing video.

rahuladitya
Автор

I am excited to learn everything about JS. Your first introduction video and this video was enough to know that it's going to be an amazing journey into loving JS ☺️ Thank u Akshay for creating Namaste 🙏 JavaScript.

kuldeepgehlot
Автор

I’ve been writing JavaScript for about a year now. And man I’ve never seen anyone with this much energy when talking about the language. Feeling jealous of people who get to work with you.

EshwarNorthEast
Автор

Hey Man,
the best thing you are repeating the stuff twice after explaining them. Feels like we will get to know js in deep.

sarangshadi
Автор

I am a lover of Computer Science Fundamentals and an experienced Java programmer. And I must say what you have taught in this video is really the core of any programming language. Hats off for your efforts to make sure everyone has a strong base before even one starts learning JS. Great Job !!! Thanks !!!

dsalgos
Автор

Now I am 100% sure that I am going to fall in love with javascript. Very much excited. Your very much genuine teacher❤❤❤

shravanikadam
Автор

The best thing about this series is it contains the JavaScript knowledge that nobody teaches and if someone does it definitely will not be free because this is really a premium content. Thank you so much for making this series

karthikpangala
Автор

The best part: "Explanation of Memory component and Code component" Thank you Akshay :)

jayjani
Автор

I'm excited- Let's do this!!!

conan