JavaScript Tutorial in Hindi for Beginners [Part 28] – The JavaScript "this" Keyword



Javascript #Tutorial #Hindi Link for Complete JavaScript Tutorial in Hindi for Beginners: …

34 Comments

  1. Watched many videos on YouTube, and my confusion about "this" keyword wasn't solved however now I am feeling confident about "this" keyword after watching this video. Thank you so much

  2. If problem can solve without this keyword so why we use this but some time code without this cannot work properly so plz make a condition where without this we cannot work….. I think u understand

  3. Watched many videos on YouTube, and my confusion about "this" keyword wasn't solved however now I am feeling confident about "this" keyword after watching this video. Thank you so much

  4. Awesome way of explaining….., i am here for revision JS and really enjoyed all your videos and learn more useful new features.

  5. this is used for
    1.All type of Function invocation > default this is pointing globally(window object) without strict mode , undefined in strict mode

    2.Method invocation > one method func this is pointing to obj, but if nested method pointing to window, use arrow fun for nested method.

    3.Constructor invocation > new binding

    so total this is used for 5 types of binding
    1) implicitily binding
    2) explicitily binding
    3) constructor binding new keyword
    4) lexical binding
    5) default binding
    6) use with eventListener
    >This is pointing to the element on which eventlistener is apllied .
    this. style. background="red"

    Note— in strict mode this is set to undefined
    arrow func doesnot hav this . so if u use this keyword in => func this is pointing one level up.

  6. Sir Java k Lecture agr complete ho gy hain to Sir is ko ek video ma uplaod kar dy jeisy HTML Or CSS k hian Or wo buhat Amazing hain i slute ur Efforts. so much love and respect for U Sir….

  7. Maan gye sir aapko awesome mujge aaj clear hua this, thanku great fan jaise aapne examples se bata h. Ab to waiting next js video, please es6 advance js bhi cover kariyega

Leave a Reply

© 2023 53GB