LWC let vs Var | Understand in Detail

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

КОМЕНТАРІ • 11

  • @boltonsquare
    @boltonsquare 5 місяців тому +1

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

  • @littlestars4114
    @littlestars4114 28 днів тому +1

    Awesome 👍
    Please can you give one more realtime example from projects

    • @salesforcein5minutes
      @salesforcein5minutes  26 днів тому +1

      @@littlestars4114 creating a seprate video series where i will build a product using lwc, stay tuned

  • @gllyprakash412
    @gllyprakash412 4 місяці тому +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  4 місяці тому

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

  • @HelloitsmeReena
    @HelloitsmeReena Місяць тому +1

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

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

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

    • @HelloitsmeReena
      @HelloitsmeReena 29 днів тому +1

      @@salesforcein5minutes video clarity

    • @salesforcein5minutes
      @salesforcein5minutes  26 днів тому

      @@HelloitsmeReena yes i am working on it, thanks for your feedback

    • @HelloitsmeReena
      @HelloitsmeReena 22 дні тому

      @@salesforcein5minutes yes please, boz your explaining so well it should not go in vain.