Hoisting in JavaScript

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • We learnt that a variable and a function declaration is stored in Variable object even before the execution of JavaScript code starts. During creation phase, the code is scanned for function declaration and for each function a property is created in variable object pointing to that function.
    Similarly, code is scanned for variable declaration and for each variable, a property is created in variable object and set to undefined.
    Because of this, the variables and functions are available to use in JavaScript program before it is declared. This is called as hoisting. Let’s understand hoisting in detail in this lecture.

Комментарии • 5

  • @hannabouttros172
    @hannabouttros172 2 года назад

    THIS UNDEFINED IS QUITE DIFFICULT TO UNDERSTAND AND ALSO QUITE ABSTRACT. SO I WILL HAVE TO GO BACK TO IT LATER ON BECAUSE I AM NOT THAT SURE THAT I HAVE UNDERSTOOD! THANKS ANYWAY! AND ROME AND PARIS WERE NOT BUILT IN A DAY!

  • @user-me9vo2pf9r
    @user-me9vo2pf9r Месяц назад

    BEST COURSE

  • @jitendrapatidar3791
    @jitendrapatidar3791 2 года назад +1

    Thanks for this playlist, actually I wander everywhere on Google for getting this type of content where I got, how javascript run behind screen? But after some searching I got this playlist which cleared all things related to javascript engine for me.👍

    • @procademy
      @procademy  2 года назад

      I have also created a new play list where I have explained behind the scenes of modern javascript program execution. You can also check out that playlist where I have given more information

    • @procademy
      @procademy  2 года назад

      ruclips.net/p/PL1BztTYDF-QM8jn9jXESmx2vJwSmhe7t9