JavaScript Interview Series- Var let const in JavaScript | Difference between Var let and Const

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 22

  • @EmpatheticPriya
    @EmpatheticPriya 9 місяців тому +1

    @Yoshita Jain Thanks for making it so simple.You making every topic so easy in js.

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

    very nice video

  • @priyabratamondal257
    @priyabratamondal257 10 місяців тому +2

    great explanation

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

    Great mam

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

    Great ❤

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

    Keep growing. Very informative ❤️🔥

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

    Great point!
    To add to that, while let and const declarations are hoisted in JavaScript, they are not initialized with a default value of "undefined" like var. Instead, only the declaration is hoisted, and the default initialization does not occur until the variable's actual declaration is reached in the code.
    This is why we get a "ReferenceError" if we try to access any variable declared using let and const before its actual declaration in the code.
    In contrast, with var, both the declaration and initialization are hoisted, but the variable is initialized to a default value of "undefined".
    That is why, when we try to access any variable declared using var before its declaration we get a default value of "undefined".

  • @cg.yamangaming4632
    @cg.yamangaming4632 6 місяців тому

    Are you very good explain

  • @sidharthdhiman4522
    @sidharthdhiman4522 Рік тому +3

    hello mam , can you make a short video on virtual dom , i wasnt able to find it , and mam can you create a video on lifecycle methods and lifecycle hooks which is asked in interview

  • @abhishekdehariya6128
    @abhishekdehariya6128 9 місяців тому +1

    👍👍👍

  • @tejalbhavsar4610
    @tejalbhavsar4610 10 місяців тому +1

    let and const are also hoisted but in temporal dead zone.

  • @waqarabas_72
    @waqarabas_72 Рік тому +4

    Lots of love from 🇵🇰

  • @ShubhamChhadi
    @ShubhamChhadi 9 днів тому

    please mam update more videos

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

    You explain very well mam

  • @neerajmali-dx5dq
    @neerajmali-dx5dq Рік тому

    Mam make a video on lexical environment and shadowing

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

    Sister ek admin dashboard pe video banai or payment integration pe jisme braintree or stripe dono methods ka use ho raha ho plz

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

    Great

  • @ashimaurya5900
    @ashimaurya5900 Місяць тому

    please make advanced javascript series your videos are the best

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

    Yoshita 1 correction here, a variable declared using var within a scope COULD be accessed outside it's scope. Please correct me If I'm wrong

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

    very nice video