Create JavaScript Clock in LWC

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

КОМЕНТАРІ • 5

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

    hi ....dynamically the second is not changing for me. I used the same code

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

    Why did you use setTimeout instead of setinterval ??

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

      We can use any of them and used Set timeout. I don't have any specific reason for this.

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

    Everything is ok. But it showing 12 AM instead of 12PM in afternoon. After 1 o clock it shows PM.

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

    Can you share the code please? I will be grateful