JavaScript Project: Counter

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • JavaScript adds interactivity to any of the webpages you see. That is why UltraDevX has started created this tutorial a JavaScript project so you can learn JavaScript. With this tutorial you will be able to create a counter in HTML, CSS and JavaScript. I recommend every one should do this tutorial as the basics are the most important. We will add some buttons so you can increase, decrease or reset the timer.
    Subscribe, as it helps a lot.
    ➡️ Subscribe: bit.ly/2OtU0m7
    ----------------------------------------
    + Video files
    bit.ly/3qmToMZ
    😀️ Links
    Github: github.com/Ult...
    Dev.to: dev.to/ultradevx

Komentáře • 44

  • @ayaali746
    @ayaali746 Před 2 lety +3

    wooo
    Very nice and accurate explanation, thank you

  • @BePositiveDaily247
    @BePositiveDaily247 Před rokem

    I really liked the way u explained it. It was very engaging and very cool
    too!

  • @HrishiKW
    @HrishiKW Před rokem +1

    straight to the point no bs

  • @smitallunawat6167
    @smitallunawat6167 Před rokem

    Great job and explained every bit perfectly!

  • @DamosyTheFreckle
    @DamosyTheFreckle Před 2 měsíci

    I did this, it is amazing! But everytime I refresh or close tab, I lose the number where I previously left off. How do I make it such that everytime I refresh, i still get the previously stored number?

    • @ultradevx
      @ultradevx  Před měsícem

      Hello @DamosyTheFreckle, thanks for the compliments. I am thinking of starting to upload again very soon. I will then upload a video where we can store the counter.

  • @thangamaniav9840
    @thangamaniav9840 Před rokem

    Thanks for your simple, easily understood video. Superb.
    From this I got my first successful javaScript, HTML, css project.

  • @sartajansari2538
    @sartajansari2538 Před 2 lety

    Thank you for support

  • @ItsMe-vn2gi
    @ItsMe-vn2gi Před rokem

    Thank you

  • @cRillystr
    @cRillystr Před rokem

    With this code how can I disable the decrease button if the value < 0? Nice video.

    • @ultradevx
      @ultradevx  Před rokem

      I updated the github repo to disabled the decrease button if the value is less than 0.

  • @yourman8808
    @yourman8808 Před 2 lety

    it was a great video .

  • @ChristopherRobbin-ub6rw

    thank

  • @TokijikarinShikaki
    @TokijikarinShikaki Před rokem

    hyy yrr why did'nt you show output after write a several line of code😪

    • @ultradevx
      @ultradevx  Před rokem

      I thought the final output would be sufficient. Will note your point for my future videos.

  • @axelalex08
    @axelalex08 Před rokem

    What The extensii is that for ===??

    • @ultradevx
      @ultradevx  Před rokem

      The === checks if the two values are equal.

  • @mverma7845
    @mverma7845 Před 2 lety +3

    so If I have the if (count > 0) {
    counter.styles.color = 'green';
    }

    if (count < 0) {
    counter.styles.color = 'red';
    }
    if (count === 0) {
    counter.styles.color = 'black';
    }
    my code doesn't work, if I comment it out everything works
    I get an error in the console that says Uncaught TypeError Can not set properties of undefined (setting 'color') would you know why?

    • @ultradevx
      @ultradevx  Před 2 lety +5

      Change all the styles to style

    • @mverma7845
      @mverma7845 Před 2 lety

      @@ultradevx that worked thanks

    • @ultradevx
      @ultradevx  Před 2 lety +1

      Your welcome

    • @ibrahimyusufgarba1243
      @ibrahimyusufgarba1243 Před 2 lety

      there is additional 's' in your code (styles) that you need to remove for it to work. I think it should be :
      if (count > 0) {
      counter.style.color = 'green';
      }

      if (count < 0) {
      counter.style.color = 'red';
      }
      if (count === 0) {
      counter.style.color = 'black';
      }

  • @angelaparkes451
    @angelaparkes451 Před 2 lety

    The files dont seem to work anymore

  • @gfddgitgud3848
    @gfddgitgud3848 Před rokem

    Hi sir u still developing?

    • @ultradevx
      @ultradevx  Před 8 měsíci

      Hello sir, I still code but I am not able to find time to make videos.

  • @tupanceayx86
    @tupanceayx86 Před 2 lety

    any way to make it animated?

    • @ultradevx
      @ultradevx  Před 2 lety

      It will be very hard to make the counter animated as you will have to install a lot of things.

    • @tupanceayx86
      @tupanceayx86 Před 2 lety

      @@ultradevx could you make a tutorial about it?

    • @ultradevx
      @ultradevx  Před 2 lety

      Ok

    • @ultradevx
      @ultradevx  Před 2 lety

      I added the animations in the github repository. This is the link: github.com/UltraDevX/js-project-counter. I used CSS keyframes to add the animations.

  • @bhanue.bhanuprakash4663

    It's not working this is false

    • @ultradevx
      @ultradevx  Před rokem

      Check if you did all the steps properly. It worked for me and many people.