JavaScript Continued.

·

1 min read

In my last blog, I wrote some of my experience of what I have learned so far about javascript concepts like Execution context and how javascript works inside the browser.

In this blog, we will go through some more topics that I have learned from the Namaste Javascript playlist by Akshay Saini Sir.

  1. What is hoisting?

    Hoisting in JavaScript is a very interesting and unique topic in itself. In JavaScript, we can extract the value of a variable even before any value is assigned to it. This thing happens because of the memory creation phase of JavaScript where undefined is assigned to the value of the variable at first before the code is executed and if there is a function the code inside the function is stored in the memory.

  2. What is a window?

    A window is an object that is created inside the global space it contains a lot and functions and variables which can be accessed from anywhere in the program

  3. What is "this"?

    "this " is a keyword in JavaScript it is used to point to a window object we can say that on the global level window==this. we can access the value of any variable using this keyword if it is present in the global scope.