LWC let vs Var | Understand in Detail

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • in this video :
    difference between let and var
    when to use let in lwc
    when to use var in lwc
    Want to Connect with me one to one :
    topmate.io/salesforce_in_5_minutes

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

  • @boltonsquare
    @boltonsquare 3 месяца назад +1

    Thanks...Though it looks simple many people don't know the difference I feel.

  • @HelloitsmeReena
    @HelloitsmeReena 12 дней назад +1

    can you please make sure if the video can have more clarity that will be great !

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

      @@HelloitsmeReena clarity do u mean video clarity or concept clarity?

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

    Hey in the 'let' example you are creating anothe variable inside the if block and printing its value. You are not changing the value of myVar declared outside if block.

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

      I was just trying to prove a point that let are used for scope !