Variable Hoisting in JavaScript (Hindi)

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 126

  • @Noor-gv8ec
    @Noor-gv8ec 5 років тому +21

    I think your channel is the best hindi programming channel. Awesome. Keep it up!

  • @liaqatalikhan5582
    @liaqatalikhan5582 Рік тому +2

    Amazing Bro! Nobody can explain it like this!

  • @em-arko
    @em-arko 4 роки тому +3

    Itna easy tutorial wobhi free me,,thank you sir. Dua karunga apkeliye ❤🇧🇩

  • @jenasusil6
    @jenasusil6 5 років тому +4

    Kya jobardast samjhaya hai app ne...Great video :)

  • @ajaykumar-zo1sq
    @ajaykumar-zo1sq 5 років тому

    kya baat h... bro... maine duniya jahaan ki video dekh daali mujhe samjh nahi aaya... lekin tumne itne achhe se explained kiya h... ki jo b doubt tha clear ho gya. thanks bro

  • @uttamsutariya
    @uttamsutariya 3 роки тому +4

    Thank you for this amazing basic course, it totally covers everything, may god bless you brother

  • @maheshpanchal157
    @maheshpanchal157 5 років тому +2

    Excellent explanation and easily understand java script....very very nice teaching.

  • @liaqatalikhan5582
    @liaqatalikhan5582 Рік тому +1

    Great! It helped me . Thank you brother.

  • @vishal_taywade
    @vishal_taywade 5 років тому +2

    You explained very nicely 👍
    If anyone understand once properly then entire life not forgot..

  • @maheshsale
    @maheshsale Рік тому

    Best explanation ever on YoutTube. Thank you

  • @avishek_ataur
    @avishek_ataur 2 роки тому +1

    Mah Man, Your explanations are top notch beginner friendly, Keep up this good work.

  • @_samirdahal
    @_samirdahal 5 років тому +4

    You deserve more views :)

  • @Mahakal_1240
    @Mahakal_1240 2 роки тому +1

    (You are doing Great job) make Series for front end developer

  • @rohitgawande1969
    @rohitgawande1969 8 місяців тому

    You have cleared this concept very well. Thank you so much ❤.

  • @sumitsingh1093
    @sumitsingh1093 5 місяців тому

    One of the best explanation 👌

  • @Imran_kpk
    @Imran_kpk Рік тому

    Sir we appreciate your every level language lectures
    And your are my best and favourite teacher in my web development career Thanks GeekyShows🧡💚💓🌹💙

  • @bhushansontakke3614
    @bhushansontakke3614 Рік тому

    your explanation is outstanding bro always....❤

  • @Rpayalvlogs
    @Rpayalvlogs Рік тому

    You explain the concept nicely bro. God bless you🙏. Love you bro

  • @exceptional_inspiration786
    @exceptional_inspiration786 5 місяців тому

    This video is still helping many students like me thank u broo! Love from Pakistan

  • @invoiceaccount2236
    @invoiceaccount2236 4 роки тому +1

    Fabolous explanation inside the video, please add let and const with hoisting concepts

  • @AmanSingh-oc5tu
    @AmanSingh-oc5tu 3 роки тому

    best video hoisting in youtube channel

  • @HARSHKUMAR-fi5fr
    @HARSHKUMAR-fi5fr 2 роки тому

    bhai aap jo samjhate ho na dhaga khol dete ho concept ka .or sabse achha bat ye hai ki jo programming me weak hai wo v aapk concept samjh leta hai

  • @DP_CP
    @DP_CP 4 роки тому

    Fabulous way of teaching 👍👍👍

  • @Stories_hubs
    @Stories_hubs 2 роки тому

    Thank you so much always you gave us a valuable series...

  • @GauravSingh-by1xz
    @GauravSingh-by1xz 5 років тому

    bro.. god level teaching ... tumhare vids padh ke hi davidshariff ke test dunga

  • @naysolutions4225
    @naysolutions4225 4 роки тому

    Very useful information you explained #varDeclarationHoisting

  • @sadtech.
    @sadtech. 2 роки тому +1

    aaj ke liyea itna hi he, kal is video se shuru karongg good night

  • @nabeelkhan-dp2fc
    @nabeelkhan-dp2fc Рік тому

    explanation level: master

  • @SpKumar-f1j
    @SpKumar-f1j Рік тому

    How come you made us understand easily ❤

  • @rahul44914
    @rahul44914 Рік тому

    bro concept is nicely cleared thanks bro

  • @gatetogo
    @gatetogo 3 роки тому

    Thanks bro... amazing explanation.

  • @nehasen9075
    @nehasen9075 5 років тому

    it is a really very clear and easy way to understand Thanku

  • @Tradingwithtrend857
    @Tradingwithtrend857 5 років тому

    Excellent method of your teaching i understood all concept

  • @DHEERAJKUMAR-ov9oq
    @DHEERAJKUMAR-ov9oq Рік тому

    bahut badhiya samjhate ho bro

  • @sumitchawla9362
    @sumitchawla9362 4 роки тому

    Ap kafi acha samjate ho!..

  • @kajalkashyap4068
    @kajalkashyap4068 5 років тому +1

    thank you so much sir you are the one jisko me itne time se search kr rhi thi......... thank you so much this amazing tutorial, but ye bht achha hoga agr ap hame is tutorials se related practice exercise bta de, q k basics to smjh aa jate h bt inko projects me kaise use kre smjh nhi aata... kya ap kuch practice task bta skte hai jo generally hum kisi projects me use kr ske, jinko krne se hmare basics or zyada clear ho jaaye or hmara confidence b badh jaaye coading k liye:)

    • @geekyshows
      @geekyshows  5 років тому +1

      Hi Kajal, HTML, CSS, JS complete karne k baad iss playlist ko follow kijiye isme project hai and saath me jo sikh rahi unko kaise project me use karna hai wo bhi dekhne ko milega ua-cam.com/play/PLbGui_ZYuhih078N9TTOqTANeYVwqkPLl.html

    • @kajalkashyap4068
      @kajalkashyap4068 5 років тому

      @@geekyshows thank you so much reply, I will follow it:)

  • @JD-hq1kn
    @JD-hq1kn 2 роки тому

    3:27 Compile phase javascript mei kaise hoga ? Javascript toh scripting language hai.. uska compilation nhi interpretation hona chahiye....

  • @prabodhbharti7385
    @prabodhbharti7385 3 роки тому

    Tussi great ho jahapanah tofu kubul karo GREAT JOB FANTASTIC

  • @PoojaSharma-hp7zd
    @PoojaSharma-hp7zd 2 роки тому

    Thank you bro. Nice explanation.

  •  2 місяці тому

    best explanation sir thank you

  • @singhsh7865
    @singhsh7865 5 років тому

    kya samjhaaya hai bhai... awesome

  • @jyothitiwari8711
    @jyothitiwari8711 4 роки тому

    Very well explained..

  • @rushikeshsanap3401
    @rushikeshsanap3401 3 роки тому

    Thanks bro this is very clear one

  • @kM-pc4sy
    @kM-pc4sy 6 років тому +3

    nice video good explanation. please share more videos on JavaScript

    • @geekyshows
      @geekyshows  6 років тому +2

      There are two Playlist Core JavaScript 180 Videos and Advance JavaScript Kindly follow those playlist ThankS

    • @kM-pc4sy
      @kM-pc4sy 6 років тому +2

      @@geekyshowswhere are videos related to advanced JavaScript ?

  • @bhavyapandey
    @bhavyapandey 4 роки тому +2

    Bhai meri job lagne ke bad mai aapke channel ke liye donate karunga.
    Thanks

  • @xyzpqr3789
    @xyzpqr3789 4 роки тому

    Thanks Bro..!!!. Nice Work, Keep it up..!!!

  • @manaswishige3745
    @manaswishige3745 4 роки тому

    Superb.. thank you very much for sharing your knowledge

  • @shuvsarkar8681
    @shuvsarkar8681 3 роки тому

    Great Tutorial, undoubtedly.

  • @justthinknget
    @justthinknget 3 роки тому

    Thank you Bro Very Easy to Understand 🙏🏻

  • @jayamehrotra9212
    @jayamehrotra9212 4 роки тому

    Very nice way to clear

  • @coolgamer2670
    @coolgamer2670 4 роки тому

    Thanks for making this informative video...love you

  • @vishalpandey1578
    @vishalpandey1578 5 років тому +1

    variable hoisting is only for var keyword not for let and cost i have checked it in visual studio codes.

  • @abhijitz8146
    @abhijitz8146 5 років тому

    God level explanation!

  • @MasudRana-vl6lp
    @MasudRana-vl6lp 4 роки тому

    Thank you so much..your tutorial very helpful

  • @yashbhardwaj9905
    @yashbhardwaj9905 2 роки тому

    Thanku...bhai 👍🏻

  • @sharfuddin84khan
    @sharfuddin84khan 3 роки тому

    Thanks for the nicely explain!! ❤️👍:) You are champ bro 😀

  • @allanimeworld2898
    @allanimeworld2898 3 роки тому

    Sir is function variable also executes like that

  • @abusalehinrifat5516
    @abusalehinrifat5516 4 роки тому

    You are awesome brother,

  • @Raj10185
    @Raj10185 Рік тому

    thaks for amazing turtorial

  • @PANKAJKUMAR-fe8zn
    @PANKAJKUMAR-fe8zn 5 років тому

    Thanks sir....It was very helpful....

  • @adityarocker7205
    @adityarocker7205 4 роки тому

    Best Explanation

  • @mahadevayyamk9348
    @mahadevayyamk9348 4 роки тому

    Great video ❤️

  • @nitishara2010
    @nitishara2010 4 роки тому +1

    Sir I have doubt in variable hosting concept..
    Aap ne bataya ki javascript ka compiler var ko top kr deta hai ... global variables me toh kahin v intialaize krne pr o/p aa rha pr...pr inside function me wo concept kaam nhi kr rha ye aap bataye nhi

    • @JD-hq1kn
      @JD-hq1kn 2 роки тому

      Javascript ka compiler nhi hota... Interpreter hota hai... Kyuki JavaScript programming language nhi hai, woh scripting language hai..

  • @amitkavinkar1627
    @amitkavinkar1627 6 років тому +1

    Nice Explanation

  • @monsoonmalabar4107
    @monsoonmalabar4107 5 років тому

    Thanks for the clear explanation

  • @himanshujain5670
    @himanshujain5670 4 роки тому

    ek dum jhakass samjhay

  • @adhya_the_begning
    @adhya_the_begning 4 роки тому

    very well explained!!

  • @m.huzaifajunaid9423
    @m.huzaifajunaid9423 3 роки тому

    nice understanding

  • @allanimeworld2898
    @allanimeworld2898 3 роки тому

    Sir please make a video on let hoisting and how it works inside if else

  • @islamzindabad7508
    @islamzindabad7508 4 роки тому

    Super Amazing! bro

  • @manishkumar-ce2db
    @manishkumar-ce2db 4 роки тому +2

    Nahi samjh me aya..i know. aap really antaryami ho. Best Channel. Thanks

  • @sahiljoshifanclub1302
    @sahiljoshifanclub1302 5 років тому

    thanxx very easy to understand

  • @rohitkudalkar92
    @rohitkudalkar92 5 років тому +1

    Is hoisting is similarly work as a typescript. I mean to say in typescript we need to declare a variable and its type at the beginning.

    • @chinmayyogi6958
      @chinmayyogi6958 3 роки тому +1

      it doesn't matter even if you declare it at the end . just keep one thing in mind that if you try to access variable before assigning value to that variable (before defining variable) then it will give not defined error. and type script is javascript only. but the different form of java script. i.e wrapper of java script. anyone please correct me if I am wrong

  • @ArjunSingh-oo1mh
    @ArjunSingh-oo1mh 3 роки тому

    good explaination

  • @salmanali-yn3tw
    @salmanali-yn3tw 6 років тому

    Nice video. Good job

  • @justsakti
    @justsakti 5 років тому

    nice explanation !!!

  • @archanapal0452
    @archanapal0452 Рік тому

    Very nyc 🎉

  • @MyRndProgramming
    @MyRndProgramming 6 років тому +1

    ?? Please explain why hoisting not working in the below case:
    console.log(b); //Error: b is not defined
    b=30;
    console.log(b); //30
    Why error on first line if hoisting works, first console statement should print undefined but it's an error???

    • @geekyshows
      @geekyshows  6 років тому

      You are not declaring the variable. run below section of code
      1.
      console.log(b);
      b = 30;
      2.
      console.log(b);
      var b = 30;

    • @HimanshuSharma-vt8ke
      @HimanshuSharma-vt8ke 5 років тому

      @logiconutube because u've never declared or defined what b is. Here, JavaScript doesn't have any idea what b is. That's why u are getting an error that b is not defined. If you would have defined b as a variable, anywhere in the global scope, it would displayed its value correctly.

  • @KundanKumar-uc4ng
    @KundanKumar-uc4ng 5 років тому +1

    sir aap jo sentance display karane ke liye use karte hai .document.write("kundan");
    but website me ye bhi diya gya hai document.GetElementById.InnerHTML="kundan",
    dono ka matlab kya hai please samjhaye

    • @rawahapool
      @rawahapool 4 роки тому

      If you use document.write then all the elements in body will be removed. So that's why we use getelementbyid.innerhtml = now write your html :)

  • @waqarahmed1671
    @waqarahmed1671 4 роки тому

    good job bro

  • @nayaktricksgaming
    @nayaktricksgaming Рік тому

    Bro I have doubt ÷
    1.jab humne VAR i ki value already declare kar di hai vo bi global variable main
    2. To function ke ander i print krne pr undefined ki jagah hello print hona chahiye na
    Please clear my query thank you

    • @archanapal0452
      @archanapal0452 Рік тому

      Becoz function hmesha phle local variables ko prefer krega jb local m vo value nhi milta tb bhr search krta h yha pr I mil gya to vo global search nhi kiya

  • @Webify_Mastery
    @Webify_Mastery Рік тому

    Oh my man ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

  • @anaghasalvi8364
    @anaghasalvi8364 4 роки тому

    Thank you so much!

  • @iamdanyaal
    @iamdanyaal 3 роки тому

    Thank You Sir

  • @Muhammadshakir-tp2cv
    @Muhammadshakir-tp2cv 6 місяців тому

    thanks you sir..

  • @harisansari378
    @harisansari378 5 років тому

    Awesome video

  • @invoiceaccount2236
    @invoiceaccount2236 4 роки тому

    var variable = 10;
    (()=>{
    console.log(variable); // undefined
    variable = 20;
    console.log(variable); // 20
    })();
    console.log(variable);
    var variable = 30

  • @gkmishra2009
    @gkmishra2009 4 роки тому

    great sir

  • @deepakbhargav7434
    @deepakbhargav7434 3 роки тому

    Thank you

  • @invoiceaccount2236
    @invoiceaccount2236 4 роки тому

    As per Your explanantion
    var variable = 10;
    (()=>{
    console.log(variable); // undefined
    variable = 20;
    console.log(variable); // 20
    })();
    var variable = 30;
    console.log(variable);
    Answer Should be : undeifned 20, 30
    but actual answer is 10,20,30

  • @Noor-gv8ec
    @Noor-gv8ec 5 років тому

    Thank you so much sir

  • @amjadali-cs3si
    @amjadali-cs3si 3 роки тому

    var ky jaga let or const q nhi use kya apne sir?

  • @rubishaikh5346
    @rubishaikh5346 2 роки тому

    Hello sir....muje angular padh nah hai..
    Aap ke pure series mein angular kahi nahi hai...pls muje guide kare.

  • @saldanodi5740
    @saldanodi5740 3 роки тому

    Love you vai

  • @mowglishihtzutoy5197
    @mowglishihtzutoy5197 4 роки тому

    nice man

  • @KhanHamza
    @KhanHamza 5 років тому +1

    Sir, ye explain karo.....
    a = 10;
    b = 10;
    document.write(a +''+ b);
    maine var keyword nahi type kiyaa..... phir bhi output baraabar aa rahaa hai..... aisaa q ?????

    • @mquanit3333
      @mquanit3333 5 років тому

      compiled version
      /*
      var a;
      a = 10;
      var b;
      b = 10;
      document.write(a +''+ b);
      */

    • @anshumandash4244
      @anshumandash4244 4 роки тому

      Because the compiler read 'a' and 'b' which are initialised as a global variable.

    • @akshdesai3390
      @akshdesai3390 10 місяців тому

      In JavaScript, if you simply write a = 10; without explicitly declaring the variable a using var, let, or const, JavaScript will implicitly declare a in the global scope (if not in strict mode) or in the local scope (if in strict mode).

  • @whatnothin1401
    @whatnothin1401 3 роки тому

    I tought it was about variable hosting :D

  • @shyambhattarai977
    @shyambhattarai977 Рік тому

    Hoisting in JavaScript

    var a=10;
    document.write(a,b);
    var b=20;
    document.write(a,b);
    function display(){
    document.write(a);
    var a;
    }
    display()

  • @invoiceaccount2236
    @invoiceaccount2236 4 роки тому

    please explain this example
    var variable = 10;
    (()=>{
    console.log(variable); // undefined
    variable = 20;
    console.log(variable); // 20
    })();

  • @venateshbanagarcse3188
    @venateshbanagarcse3188 Рік тому

    🙏🙏🙏🙏🙏🙏🙏🙏