Lexical scoping and Closure | chai aur

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • Visit chaicode.com for all related materials, community help, source code etc.
    #javascript #hindi
    Sara code yaha milta h
    github.com/hit...
    Discord pe yaha paaye jaate h:
    hitesh.ai/discord
    Instagram pe yaha paaye jaate h:
    / hiteshchoudharyofficial

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

  • @vikasmaur1206
    @vikasmaur1206 Год назад +120

    0:00 Introduction
    1:55 Reading the MDN docs
    3:23 Lexical Scoping
    14:00 Closure
    18:09 Practical Implementation

    • @chaiaurcode
      @chaiaurcode  Год назад +80

      Ye hui na baat, ❤️

    • @vikasmaur1206
      @vikasmaur1206 Год назад +3

      @@chaiaurcode ♥️♥️

    • @nehasalma9083
      @nehasalma9083 11 месяцев назад

      sir i cannot understand closure @@chaiaurcode

    • @nehasalma9083
      @nehasalma9083 11 месяцев назад

      you understand closure can you tell me closure

    • @The_Aesthetic_Developer
      @The_Aesthetic_Developer 5 месяцев назад

      return child function inside parent function@@nehasalma9083

  • @user-cn9oo4qt9w
    @user-cn9oo4qt9w 3 месяца назад +6

    I tried many videos and channels for closures but finally I found this guy. Thank you so much sir

    • @chaiaurcode
      @chaiaurcode  3 месяца назад +5

      Happy to help🤗☕️

  • @prakharsinha4145
    @prakharsinha4145 11 месяцев назад +60

    trust me sir! you will be known forever for this Javascript series! The Best on the planet!

    • @chaiaurcode
      @chaiaurcode  11 месяцев назад +49

      Abhi to bs shuru hue h 😁

    • @aqdusali8507
      @aqdusali8507 6 месяцев назад +1

      sir, when second part comes?@@chaiaurcode

  • @shubhamkumarjha9192
    @shubhamkumarjha9192 11 месяцев назад +16

    0:00 Introduction
    1:55 Reading the MDN docs
    3:23 Lexical Scoping
    14:00 Closure
    18:09 Practical Implementation
    very very helpful playlist Thank you so much sir for this Premium course on javascript for free..

  • @abhishekkumargupta543
    @abhishekkumargupta543 9 месяцев назад +7

    I have not shared your videos links to anyone but I have recommended many friends to watch your videos . if they don't know any topic and try to ask me then I use to say "AAGAR AAP NE CHAI AUR CODE PE HITESH SIR SE PDE HOTE TO MERE SE NHI PUCHTE ", No doubt you are super. keep making videos and get motivated . I started watching your videos 3 years back but i was never serious but now I am int the stream. Once again thank you sir.

    • @ExploreSciFi
      @ExploreSciFi 3 месяца назад

      apana poura dimage lagaya ha
      mein bhe yahhe karuga insh'ALLAH

  • @ImSRJY
    @ImSRJY 11 месяцев назад +63

    यूट्यूब पर कोचिंग का खेल तो चलता रहेगा, कोर्स आएंगे, जाएंगे.. कभी फ्री बनेंगे कभी पेड लेकिन ये चाय और कोड रहना चाहिए इसका बेशकीमती जावास्क्रिप्ट का कोर्स अमर रहना चाहिए। ❤❤

  • @abhishekkumar-v5s2s
    @abhishekkumar-v5s2s 13 дней назад

    best teacher ever seen in my coding phase escpecially in mern stack

  • @sudiptobose8296
    @sudiptobose8296 29 дней назад

    13:07 you are the best. baki youtubers k video ko dekh kar samjh nahi aya but yeh video dekh kar mere atma ko santushti mil gaya.

  • @srikarravoori124
    @srikarravoori124 17 дней назад

    The best tutorial on the internet ever!

  • @anilray9419
    @anilray9419 7 месяцев назад +2

    Aaapko hirday se naman hai prabhu......aapse to interview dene wale hi nahi balki interview lene wale ko bhi sikhna chahiye....aapka video to mai dekhta and like share karta rahta hu but ispe to aapne comment likhne ko majbur hi kar dia

  • @VishalYadav-kp5cp
    @VishalYadav-kp5cp Год назад +1

    Thank you so much sir
    Javascript ki Sabse best series provide krne ke liye
    Maine puri series follow Kiya jisse mujhe javascript samjh aane laga aur ab kudh se project bhi bana leta hoon....
    Again Thank you so much sir 🙏

  • @sanantakumarrath1775
    @sanantakumarrath1775 Год назад +1

    I don't see any video , but just came to learn about closure , and Hitesh sir's teaching is ABSOLUTEBEAUTY, and he teach me how to read documentation that most important thing for me

  • @RohitChhabirajYadav
    @RohitChhabirajYadav 11 месяцев назад +2

    finally koi yt ki playlist Finish kiya first time in my life

  • @Dev-Phantom
    @Dev-Phantom 7 месяцев назад +2

    application of this Lexical scope was totally new for me. very intersting

  • @pratikbidve8316
    @pratikbidve8316 Год назад +2

    Badhiya aaisa sikhayege to koi bhi sikh jayega coding.

  • @TheSuyash08
    @TheSuyash08 4 месяца назад

    Hitesh ji In this lecture you have explained this two topics very easily. The topics which sounds very difficult, you made it look very simple with awesome example. Thanks a lot

  • @muhammadarslan78676
    @muhammadarslan78676 Год назад +1

    This is the best explanation for closures ever, Thanks man

  • @Tech_Life_2.0
    @Tech_Life_2.0 Год назад +3

    13:40 laxical scope completed awesome 🎉🎉

  • @developer_dhanji
    @developer_dhanji Месяц назад

    Revise after 4 month and this time understanding is mindblowing

  • @MeenakshiBisht-wz9rs
    @MeenakshiBisht-wz9rs Месяц назад +1

    Thank you sir for this amazing series 😊

  • @Razzaq69
    @Razzaq69 4 месяца назад

    yes i watched few other videos before this, lekin my concept got cleared when i watched this video. Thanks Hitesh Sir 🙂

  • @Vcoder23
    @Vcoder23 Месяц назад

    Mini project based lexical scoping and closure example was cheery on the cake!!!!!

  • @sujalbhandari2334
    @sujalbhandari2334 29 дней назад

    finally i understood the lexical scope thank you sir for being here to teach us. love from nepal

  • @razashah7881
    @razashah7881 6 месяцев назад

    Sir very nice. aapney bilkul desi method me samjhaya to samajh aa gai otherwise mujhe 7 din ho gaey hen me isee topic par hi phsa hua tha. aksar videos or blogs me bohat mushkil examples di jati hen jo samajh me nai aaten.

  • @SarveshKumar-08
    @SarveshKumar-08 8 месяцев назад +2

    00:03 The video will cover two interesting topics: closure and lexical scoping.
    01:47 Understanding closure and its access to outer function scope with MDN docs.
    05:36 Lexical scoping does not allow access to variables declared inside a function in the outer scope.
    07:55 Inner functions have their own execution context and share memory with the outer function.
    11:51 Understanding Outer and Inner Function.
    13:37 Explanation of lexical scoping and its significance. Detail explanation of closure through an example
    17:32 Lexical scoping and closure return the entire lexical scope of a function when a complete function is returned.
    19:14 Using onClick event and changing background color in JavaScript
    22:27 Understanding the difference between a function and a reference to a function.
    24:03 In Summary Functions have access to variables defined in their outer scope.
    Closure allows a function to retain access to variables from its lexical scope

  • @jast_aryan-13
    @jast_aryan-13 7 месяцев назад

    Sir aap hr concepts ko practical examples se explain krte usse bhut ache se samj ata thanku sir for thi series😊❤️

  • @relaxingmusic8781
    @relaxingmusic8781 8 месяцев назад

    Here I got Cristal cleared the concept of closure
    Thank you so much sir 🙏🙏
    Your way of teaching is awesome

  • @priyanshukumar6679
    @priyanshukumar6679 2 месяца назад

    I am revising and literally no one explained like you ❤

  • @BhavnaChoudhary-gg1ge
    @BhavnaChoudhary-gg1ge 2 месяца назад

    I have watched many channel for javascript but the way you explain all the concepts...i have really became fan of ur teaching style... Hat's off to you 🙌🙏 @chaiaurcode

  • @endgame3842
    @endgame3842 Год назад +2

    Arey sir ek hi to dil hai kitnee barr jeetogai...

    • @chaiaurcode
      @chaiaurcode  Год назад +4

      Aap linkedin pe share hi itni baar kr rhe ki aur videos bnane ka mn krta h

    • @endgame3842
      @endgame3842 Год назад +1

      @@chaiaurcode sir Tagg kra hai aapkoo...
      Finally completed 50/50 videos with complete understanding and with notes as well proper practice

  • @Sneakingmentor
    @Sneakingmentor Год назад +1

    Ek baar mein samak aagaya. Thnx Hitesh sir.

  • @muhammadadil-or3kb
    @muhammadadil-or3kb 5 месяцев назад +2

    0:00 Introduction
    1:55 Reading the MDN docs
    3:23 Lexical Scoping
    14:00 Closure

  • @AbheyKhurana-tc6be
    @AbheyKhurana-tc6be 3 месяца назад

    Best explanation of Closures with example💯

  • @rajanbhai5043
    @rajanbhai5043 Месяц назад

    1:55 Reading the MDN docs
    3:23 Lexical Scoping
    13:33 Closure
    18:09 Practical Implementation

  • @muhammadkamran3948
    @muhammadkamran3948 6 месяцев назад

    Amazing sir . i have watching many videos about lexical scoping and closure but I can't understand but sir after watching yours videos now I realize that its very easy

  • @AdolfRizzler41
    @AdolfRizzler41 Год назад +1

    Bhai tu bahut badiya samjhta hai love from haryana

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

      😂😂😂 Bhai nhi hai guru ji hai

  • @mayeshafairuz
    @mayeshafairuz 6 месяцев назад

    Kya shamjhaya sir, kya hi intelligence hy bhai, mza agya! Thank you soo much!

  • @premlenovo3098
    @premlenovo3098 8 месяцев назад

    koi bhi problem ho solution is always our ❤ hitesh sir
    sir apke samjaneme ek calmness hai

  • @VikashSingh-hc6zo
    @VikashSingh-hc6zo 8 месяцев назад

    Simple Crisp Clear now i know about closure and lexical scoping.Thanks a lot Hitesh SIr

  • @jagatkrishna1543
    @jagatkrishna1543 Год назад +1

    Thanks 🙏 SIR ❤
    Hannnji
    Hindi main aap ka voice bahat hi achha lagta hai.

  • @arifnaikwadi1838
    @arifnaikwadi1838 Месяц назад

    Chai piyo coding karo.....sir bahot badiya samajh me aa gaya.

  • @Instrumentation010
    @Instrumentation010 7 месяцев назад

    What a practical explanation, I don't have words to appreciate your work.

  • @omaewamoushindeiru3303
    @omaewamoushindeiru3303 2 месяца назад

    25:40 so here's the explanation and my understanding of this particular example ---
    The onclick here requires a reference of a function so that it can call it when the click event occurs on corresponding button, we always pass reference in this type of situation to prevent the function to get executed immediately.
    But the problem is we can't just pass the reference of the function because as we know it requires the color in the form of parameter and we are noy storing the reference in variable like structure such as let refHolder = clickHandler; so we can't call the refHolder later with the color parameter later in code such as refHolder('blue').
    In reality, we are giving the reference to onclick which doesn't have an in built functionality or human intelligence to call this clickHandler with argument based on the button.
    So now we actually have a tiny war between onclick() demanding a reference and clickHandler(color) which demands to be called with a parameter only otherwise error.
    Now in order to fullfill the demand of bith entities, we can we will indeed call the clickHandler() with color parameter passed ( demand fulfilled ) but at the same time we will do something that a reference is given to onClick function ( which it strictly demands ), we will return reference of an inner function which does the main work or logic( demand fulfilled ) ( Very important thing to note here is this could not have been achieved without the feature of lexical scoping )

  • @himalalynrhs4405
    @himalalynrhs4405 29 дней назад

    you are god of javascrript sir!

  • @roshanrawat4100
    @roshanrawat4100 4 месяца назад

    Finally 2nd time completed whole series
    Thank You so much @Hitesh sir for such an amazing playlist 😍😍🤩🤩😇😇

  • @nadeemakramansari1331
    @nadeemakramansari1331 7 месяцев назад

    You are giving a great content for free. Hats off to you brother. Now I know what is lexical scoping and closures.

  • @ShaheenNkhan
    @ShaheenNkhan 5 месяцев назад

    Woww amazing. What a crystal clear explanation.
    Thank-you so much sir.

  • @utkarshdixit4611
    @utkarshdixit4611 Месяц назад

    Thankyou sir for making this playlist ❤❤

  • @muhammadyaseenakhtar7789
    @muhammadyaseenakhtar7789 3 месяца назад

    Concise and crystal clear.. Awesome, Thanks ❤❤❤

  • @balvantbiharichaprajila3673
    @balvantbiharichaprajila3673 7 месяцев назад

    The best part of video is
    ki ye parents child bhai bhai ke example se jo ye aapne sikhaya hai
    mereko nahi lagta ki ham isko bhulenge

  • @BitFire007
    @BitFire007 5 месяцев назад

    "Chai aur Code, you've created a masterpiece with your JavaScript tutorials. Thank you for your brilliance!"

  • @nageshkarle1218
    @nageshkarle1218 5 месяцев назад

    Super Sir, 4 mobiles in my home so i have subscribed 4 times also i have subscribed office mail id too❤ thank you soooo much sir , i have not shared your videos links to any one but i told to lots of pepole that if you want to learn javascript then you watch the video of chai or code channel

  • @junaidmuhammad6096
    @junaidmuhammad6096 4 месяца назад

    Sir Scoping ke andar apne samjahay aht Icecream ka example deke ab lag rha hai ke best javascript series ever 💌💌

  • @PoojaRawat-gy3qm
    @PoojaRawat-gy3qm 3 месяца назад

    thank you so much sir for this JS series.

  • @nharish5965
    @nharish5965 5 месяцев назад

    sir i liked your speed of teaching, love u sir

  • @usmanahmad9847
    @usmanahmad9847 Год назад +1

    Sir, hmara safar saathme kaafi acha rha lots of love from my side❤.
    M js ki series apni yhi khtm krrha hu plan to thaa aapse pura react,nodejs,and more n more pdhne ka but now m apni ek nyi journey shuru krne jaarha hu i am goint to start from C then C++ taaki core knowledege haasil hoske.
    Bye sir❤

    • @chaiaurcode
      @chaiaurcode  Год назад +3

      Journey kahi b chale, gyaan kahi se b lo, aate jaate milte rhna chai pe. 😁

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

      inshallah😆@@chaiaurcode

  • @aladdin_885
    @aladdin_885 5 месяцев назад

    thanks sir for this series. today, I completed this series 😊😊

  • @computerduniya-cs9tg
    @computerduniya-cs9tg 10 месяцев назад

    ye only course hi nhi ye to js ka Ramban course h jisne chai or code se padh liya wo to bhul nhi sakta Thanks for hitesh sir chai or code will growth soon

  • @048_shashishankar8
    @048_shashishankar8 5 месяцев назад

    this is a hepl full series and first impresive series in RUclips for free thanks sir

  • @Vyadav.
    @Vyadav. 10 месяцев назад

    one of the best lexical scope and closure video ... maza aaya

  • @umarnoor7417
    @umarnoor7417 11 месяцев назад

    Awesome explanation for that last part "lexical scoping" in coloring background!

  • @refrigerationairconditioni4655
    @refrigerationairconditioni4655 10 месяцев назад

    yes deal done and thankyou for in depth js series lane k liye maza aa gya 90 % plus improvement in my js skill thankyou so much again and again

  • @ShivamSrivastava223
    @ShivamSrivastava223 10 месяцев назад

    The best explanation of closures and lexical scope, thank you sir

  • @swapnildapkosh2813
    @swapnildapkosh2813 3 дня назад

    Quality pro max 👍

  • @Vishal_0841
    @Vishal_0841 7 месяцев назад

    Here is something different from other creator who doesn't give proper example of closures they only say closure is created when a function is defined inside another function and allowing inner function to access variable from outer function's scope. AS Well as they give simple example of lexical scope for understanding which is really tough for understanding this topic. But you nailed it guruji 👏

  • @SameerDeadline
    @SameerDeadline Год назад +4

    Lexical scoping 00:01 to 13:45

  • @movieland143
    @movieland143 11 месяцев назад

    i see bundle of lectures on this concept but u r the best kia bat hy app ki to

  • @brijeshshukla5284
    @brijeshshukla5284 5 месяцев назад

    Apne bahut acche se samjhaya hai sir

  • @Hafijur0211
    @Hafijur0211 6 месяцев назад

    🎯 Key Takeaways for quick navigation:
    00:44 🎉 *Introduction to Closure and Lexical Scoping*
    - Acknowledgment of the importance of Closure and Lexical Scoping.
    - Announcement of the continuation of the JavaScript series with a focus on Closure and Lexical Scoping.
    01:12 📘 *Exploring Lexical Scoping*
    - Definition and role of Lexical Scoping in JavaScript.
    - Brief mention of a mini-project for real-world implementation understanding.
    01:54 🔍 *Setting the Stage for Closure Understanding*
    - Teasing the concept of Closure and the need to understand it.
    - Reflecting on the engagement and positive response from the audience.
    02:22 🔒 *Introduction to Closure*
    - Defining Closure as a combination of functions bundled together with references to the surrounding state.
    - Acknowledging the initial complexity of the definition.
    02:37 🌐 *Understanding Closure Basics*
    - Explanation of Closure concept involving outer and inner functions.
    - The accessibility of the outer function's scope from the inner function is clarified.
    03:05 🧠 *Brief on Creation Time and Closure*
    - Introduction to the concept of creation time in Closure.
    - Teaser about the interesting aspects of creation time, to be discussed later.
    03:32 📖 *Lexical Scoping and Example Walkthrough*
    - Initiation of the Lexical Scoping explanation.
    - Importing and pasting code into a new folder for better organization.
    04:29 🛠️ *Code Refinement and Documentation*
    - Correction of indentation for better code readability.
    - Preference for using "let" over "var" for variable declaration.
    05:11 🖥️ *Understanding Function Scope*
    - Declaration and explanation of the "displayName" function.
    - Clarification of the scope of the "displayName" function and where the variable "name" is accessible.
    05:40 🔍 *Exploring Scope Access in Functions*
    - Introduction to the importance of function scope and access to variables.
    - Discussion on the theoretical aspect and justification of variables being unavailable outside the function's scope.
    06:22 🧐 *User Input and Scope Access*
    - Exploring the impact of declaring variables inside functions on their accessibility.
    - Discussion on whether the "username" variable declared inside the function will be accessible outside.
    07:05 🔒 *Inner Function and Scope Locking*
    - Introduction to the concept of an inner function, named "inner," declared inside the "outer" function.
    - Explanation that the "inner" function locks the access to the "username" variable within the "outer" function.
    07:55 🔍 *Accessing Variables in Nested Functions*
    - Declaration of the "username" variable at line 25 and line 31 within different functions.
    - Explanation of the challenge of accessing the "username" variable inside the inner function.
    08:08 🤔 *Inner Function's Access to Variables*
    - Highlighting the availability of "username" inside the inner function.
    - Discussion on whether the outer function should also have access to the "username" variable.
    08:50 🔗 *Lexical Scoping and Variable Sharing*
    - Introduction to the concept of lexical scoping and how it affects variable accessibility.
    - Explanation of separate execution contexts for each function loaded and their shared memory.
    09:44 🔄 *Inner Function's Access to Outer Variables*
    - Verification of the absence of local variables within the inner function.
    - Exploration of how the inner function can access variables declared in the parent function (lexical scope).
    10:25 🌐 *Accessing Variables in Nested Functions*
    - Explanation of how outer function variables are accessible within nested functions.
    - Demonstration using the "username" variable and accessing it from both outer and inner functions.
    11:08 🧐 *Nested Functions and Variable Accessibility*
    - Discussion on the accessibility of variables based on the parent-child relationship in nested functions.
    - Introduction of the concept of equality in variable access within a family analogy.
    11:49 🔐 *Securing Variables within Inner Functions*
    - Exploration of variable access within the inner function using the "secret" variable.
    - Demonstrating restrictions on accessing the "secret" variable from the outer function.
    12:31 🤝 *Shared Variable Access in Nested Functions*
    - Investigating whether the outer function has access to the "secret" variable declared within the inner function.
    - Emphasis on the technical exploration of variable accessibility.
    12:58 🧸 *Metaphor: Sharing Toys and Ice Cream*
    - Introduction of a metaphor where personal properties (toys and ice cream) can be shared among family members.
    - Clarification on the limitations of sharing certain personal properties, emphasizing equality.
    13:41 🚪 *Closure Introduction and Community Help*
    - Announcement of the completion of Part 1 and a request for timestamps to facilitate navigation.
    - Invitation for viewers to assist each other in understanding the concepts discussed.
    14:08 🔍 *Explaining Closure with an Example*
    - Explanation of closure using an example involving Mozilla Firefox.
    - Demonstrating the attempt to understand closure through practical coding analysis.
    15:06 🔄 *Inner Function Returning Value*
    - Highlighting the concept that inner functions have access to the outer function's scope.
    - Introduction of the interesting concept of returning a function within another function.
    15:46 🧐 *Understanding Function Scope*
    - Explanation of function scope and its duration until execution.
    - Introduction of the challenge when the function's scope disappears after execution.
    16:00 📜 *Closure Concept in JavaScript*
    - Introducing the concept of closure in JavaScript.
    - Explaining how closure involves removing the execution context but retaining memory references.
    16:28 🔍 *Memory Reference in Function Execution*
    - Explaining the importance of memory references in the execution of functions.
    - Demonstrating the creation of a function (by function execution) and its subsequent memory reference.
    17:08 🔄 *Practical Example with Mozilla Display*
    - Demonstrating a practical example with Mozilla display to solidify the understanding of lexical scoping.
    - Highlighting the significance of outer and inner functions and their shared lexical scope.
    17:36 🤔 *Closure and Practical Implementation*
    - Defining closure as the return of a function with its entire lexical scope.
    - Illustrating the practical implementation of closure with a detailed explanation.
    18:04 📚 *Practical Implementation Scenario*
    - Addressing the challenge of practical implementation of lexical scoping and closure.
    - Emphasizing the importance of real-world scenarios for a deeper understanding.
    18:33 🛠️ *Building a JavaScript Example*
    - Creating a simple JavaScript example with multiple buttons.
    - Assigning unique IDs to orange and green buttons.
    19:02 🧩 *Implementing Button Click Functionality*
    - Defining the functionality for the orange and green buttons.
    - Assigning a background color change on click for the orange button.
    19:59 🖌️ *Styling and Functionality Refinement*
    - Styling the buttons by changing background colors and text.
    - Refining the code to ensure smooth implementation and visual appeal.
    20:26 🚀 *Scaling for Multiple Buttons*
    - Discussing the process of scaling the implementation for multiple buttons.
    - Providing a glimpse into handling a larger number of buttons efficiently.
    20:42 🔄 *Repeating Click Handler Logic*
    - Discussing the challenge of repetitive code when dealing with multiple buttons.
    - Introducing the "DRY" (Don't Repeat Yourself) principle.
    21:11 🛠️ *Implementing Generic Click Handler*
    - Introducing the concept of a generic click handler function.
    - Emphasizing the ability to dynamically determine which button was clicked.
    21:51 📝 *Dynamic Color Injection*
    - Utilizing variables and parameters for flexible and adaptable code.
    22:33 🚀 *Refining Click Handler*
    - Refining the click handler function with proper references and definitions.
    - Highlighting the importance of passing values correctly to the click handler method.
    23:01 🔍 *Handling Multiple Buttons*
    - Discussing the need for a global event handler for managing multiple buttons.
    - Introducing the "on click" global event handler and its role.
    23:15 🎨 *Dynamic Styling and Lexical Scoping*
    - Demonstrating the dynamic change of colors (orange and green) in response to different button clicks.
    24:13 🔄 *Modifying Function Definition*
    - Discussing the necessity of modifying the definition of the function to address the problem.
    24:52 🌐 *Lexical Scoping and Closure Relationship*
    - Explaining the relationship between lexical scoping, closures, and the access to variables.
    25:34 🔍 *Real-world Application of Closures*
    - Encouraging viewers to build their own projects to encounter and understand real-world problems.
    25:47 🌐 *Importance of Variable Access in Functions*
    - Discussing the significance of variable access in functions.
    26:02 🔄 *Handling Variables with Closures*
    - Illustrating the use of closures to handle variable access effectively.
    Made with HARPA AI

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

    Sir abb to jitni bhi videos aa rahi hai sabb deshi ghee mil raha hai. 😂 saara maal abb last mai mil raha hai JS ka.prr abb chai aur code pe subscriber bhi toofaan ke saath chal rahe hain aage dhamaal machega esi playlist pe.Thank you @Hitesh Sir regularity ke liye.❤

  • @BharatBhau80
    @BharatBhau80 3 месяца назад

    Bahut Badhiya

  • @rahamatshaikh8285
    @rahamatshaikh8285 3 месяца назад

    23:32
    here we can also fix this issue without closure ..but help of anonymous functions example given below
    function clickHandler(color) {
    document.body.style.backgroundColor = `${color}`
    }
    document.getElementById('red').onclick = function() { // anonymous function
    clickHandler('red')
    }
    document.getElementById('black').onclick = function() { // anonymous function
    clickHandler('black')
    }

  • @user-ob9qm4br2j
    @user-ob9qm4br2j 6 месяцев назад

    12:20 That is toooo relatable btw. sir ji iye to thoda dark ho gaya

  • @jrahul42
    @jrahul42 12 дней назад

    great video, nice explanation

  • @pranav5273
    @pranav5273 10 месяцев назад

    Hindi mai sikkh na is a superior way of learning, thank you Sir ji!

  • @tech_channel110
    @tech_channel110 11 месяцев назад

    kamal kr diya ap nay
    behtareen in depth lecture

  • @biswajitnayak5216
    @biswajitnayak5216 Месяц назад

    0:00 introduction
    1:55 Reading Mdn docs
    3:23 Lexical scoping
    14:00 closures

  • @vivektiwari8667
    @vivektiwari8667 Год назад +9

    Sir lexical Scope me wo family wala example (father to chaild and brother can't share to each other) wala consept kabhi nhi bhulunga , is tarike se apne samjhaya hai. ,

    • @chaiaurcode
      @chaiaurcode  Год назад +17

      Ye same example, English Channel pe kaafi famous hua tha. Acha laga ki yaha b sabko psnd aaya

  • @shyam_soni99
    @shyam_soni99 6 месяцев назад

    "Hats off to Hitesh sir for his exceptional mentorship in the JavaScript series - truly inspiring! 🎩"

  • @Dev-Phantom
    @Dev-Phantom 5 месяцев назад +1

    best example for interview

  • @_Software_developer_
    @_Software_developer_ 9 дней назад

    audio quality very good 💯

  • @user-mo1sy5ck7r
    @user-mo1sy5ck7r 5 месяцев назад

    best Series ALL OVER THE UNIVERSE, thank you Sir 🙏

  • @Cmunx
    @Cmunx 8 месяцев назад

    Thank you sir ❤.. maza aya apke sath smoothly js padh paya 🤌

  • @harpreetsingh-os3we
    @harpreetsingh-os3we 7 месяцев назад

    Thanks hitesh Chaudhary, this is first comment.thanks alot yaar.

  • @ashishpatil50
    @ashishpatil50 6 месяцев назад

    when i see first lecture i feel lecture is going very slow , but after some days this is a way to learn something

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

    0:00 introduction
    1:55 Reading the MDN docs
    3:23 Lexical Scoping
    14:00 Closure..

  • @user-nm4uu3er7v
    @user-nm4uu3er7v 11 месяцев назад

    Best Closure and lexical scope Explanation sir😇

  • @abhilashsharma7166
    @abhilashsharma7166 8 дней назад

    thankyou sir really apriciated thanku so much

  • @Salman_technical580
    @Salman_technical580 8 месяцев назад

    kia baat hai itna achha explain paid course mai bhi nhi milta

  • @anuraggupta1008
    @anuraggupta1008 5 месяцев назад

    excellence work done by sir

  • @divyanshubartwal4603
    @divyanshubartwal4603 3 месяца назад

    Best Series on RUclips

  • @akroyalmaker
    @akroyalmaker 2 месяца назад +1

    finally javaScript Chai is ENDDDDD...☕☕❤❤

  • @Priyanka-bd6um
    @Priyanka-bd6um Год назад

    My so many myths broken today related to closures, Thank you sir

  • @himalalynrhs4405
    @himalalynrhs4405 29 дней назад

    you have helped me so much

  • @Mga-quotes
    @Mga-quotes 11 месяцев назад

    Now I feel confident. 🥰🥰

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

    Thanks ji,
    Love you frome Bangladesh,its a nice course,...moja agaya dost

  • @siddheshshiposkar6815
    @siddheshshiposkar6815 7 месяцев назад

    very well explained.
    Thanks for such kind of explanation

  • @parmjeetmishra2
    @parmjeetmishra2 Год назад +1

    Step by Step, We nailed the JS .. Now we can proudly say - Yes We know the JS .. Can work in it. We have practical Knowledge.
    Thank to our great teacher who love 'chai' -- Now I am also going to drink tea(herbal, masala, green, black, lemon, ginger Lemon, jasmine, etc etc)
    Thank you so much sir

  • @Coder-rohits
    @Coder-rohits 3 месяца назад +1

    Thx So Much

  • @iswinnyx
    @iswinnyx 4 месяца назад +1

    13:39 lexical scoping is completed