Lexical scoping in javascript

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

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

  • @HiteshCodeLab
    @HiteshCodeLab  4 года назад +3

    Full course is FREE and will be available here
    courses.learncodeonline.in/learn/Complete-Javascript-course

  • @raghavgupta6186
    @raghavgupta6186 4 года назад +2

    In Python , we have closure, and closure simply means that the nested function retains the variable declared inside the outer function even after that function has returned ie it's out of the memory or we are in global context.
    Thanks Hitesh sir for this wonderful series on Javascript , now I am able to properly understand it and the most important thing I am enjoying writing the Javascript code😀👍.

    • @visaling8657
      @visaling8657 2 года назад +2

      Not even python! JavaScript itself there’s something called a closure!

  • @sudiptob631
    @sudiptob631 4 года назад +1

    Thank you so much Hitesh sir. I think this will be very easy if we can imagine it with the popsicle example or the classic king's territory problem.

  • @mohitpandey8159
    @mohitpandey8159 4 года назад +1

    Really enjoying this series... thank u Hitesh sir..

  • @Justaszz
    @Justaszz 4 года назад +4

    what are differencces between scope and lexical scope?

  • @akhilangural6593
    @akhilangural6593 4 года назад

    Sir I'm not studied.
    But you're My fav. One

  • @dakshamdev
    @dakshamdev 4 года назад +1

    Always amazing Content!
    Thanks Sir

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

    what if we have 2 methods in init() and both are taking arguments? how does it works?

  • @sivasai6890
    @sivasai6890 4 года назад

    Lexical scoping another jeberish word. But no problem Hitesh sir is with us

  • @Ravi-oh8xz
    @Ravi-oh8xz Год назад

    Thanks sir for osom content

  • @nagendranfriends3153
    @nagendranfriends3153 4 года назад

    Sir if we do all loops in JavaScript (DOM) itself means Then what's the use of programming languages lies python , java etc . Is only used for saving the data in Database . Please clarify sir please

    • @eldiablo7655
      @eldiablo7655 4 года назад +2

      So many things like multi threading and security ...etc etc are not available in js so java python go php c# is used on server side ..and many data structures already implemented in those languages.

  • @YouAndImpact
    @YouAndImpact 4 года назад

    Great video 👍

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

    Thank you sir...

  • @vraj3115
    @vraj3115 4 года назад

    #10minutesJS day 41!

  • @karenpoveda29
    @karenpoveda29 3 года назад

    I appreciate the content people make, but you tried to explain a concept that is simple with very complicated terms making it impossible to understand.

  • @raghavgupta6186
    @raghavgupta6186 4 года назад

    JAVASCRIPT WORKING IS SOMEWHAT SIMILAR TO PYTHON BUT ITS INBUILT FUNCTION NAMES AND WAY OF WRITING(camelCase) IS SOMEWHAT SIMILAR TO JAVA.😅

  • @chauhansumit5486
    @chauhansumit5486 4 года назад +1

    Sir aape kya kara te hai

  • @y.s.jenifersingh2153
    @y.s.jenifersingh2153 4 года назад

    Njoinggg

  • @alamdarali10
    @alamdarali10 4 года назад

    Good morning sir

  • @MehndiBySoukayna
    @MehndiBySoukayna Год назад

    stop using var guys what is going on\?

  • @EvilGodTHElord
    @EvilGodTHElord 2 года назад +2

    OMG, this guy doesn't even know what he is speaking just for the sake of creating content he making video. Not even explaining what the thing is and taking the viewers into more and more questions.
    Clearly this guy doesn't know how to explain.

  • @LiveEveryMoment_WithLOVE.
    @LiveEveryMoment_WithLOVE. 2 года назад

    you made it complex bro, huh😒

  • @WebContrive
    @WebContrive 4 года назад +4

    You dont know how to explain,

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

    If you write like this one it will definitely work
    function init() {
    var fristName ="Sachin Pandey";
    function sayMyFristName(){
    console.log(fristName);
    };
    sayMyFristName();
    console.log(fristName);
    }
    init();