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

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

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

  • @EmpatheticPriya
    @EmpatheticPriya 8 месяцев назад +1

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

  • @priyabratamondal257
    @priyabratamondal257 9 месяцев назад +2

    great explanation

  • @abhishekdehariya6128
    @abhishekdehariya6128 8 месяцев назад +1

    👍👍👍

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

    Great mam

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

    Great ❤

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

    Keep growing. Very informative ❤️🔥

  • @cg.yamangaming4632
    @cg.yamangaming4632 5 месяцев назад

    Are you very good explain

  • @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".

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

    very nice video

  • @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

  • @tejalbhavsar4610
    @tejalbhavsar4610 9 месяцев назад +1

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

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

    Lots of love from 🇵🇰

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

    You explain very well mam

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

    Great

  • @neerajmali-dx5dq
    @neerajmali-dx5dq Год назад

    Mam make a video on lexical environment and shadowing

  • @ashimaurya5900
    @ashimaurya5900 13 дней назад

    please make advanced javascript series your videos are the best

  • @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

  • @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 4 месяца назад

    very nice video