Build a Calculator App in HTML, CSS & JavaScript 2022

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2022
  • Learn how to build a calculator web app in html, css and javascript 2022!
    Source code: github.com/TylerPottsDev/yt-j...
    // JOIN THE DISCORD SERVER!
    / discord
    // BECOME A MEMBER TO UNLOCK MORE CONTENT!
    ruclips.net/user/tylerpottsjoin
    // MY GEAR FOR CODING AND RUclips
    Blue Yeti Microphone: amzn.to/3jr3l7T
    Microphone Stand: amzn.to/35B9LMN
    Chair: amzn.to/3dWds3F
    Thunderbolt Dock: amzn.to/3osBF6u
    Monitor: amzn.to/37I8KoR
    Screenbar Light: amzn.to/3iFRS7w
    All of these products I own and have tested!
    // FOLLOW ME ON TWITTER
    / tyler_potts_
    // INTERESTED IN GAME DEV?
    Game development channel: / muddywolf
    // CHECK OUT MY GAME
    play.google.com/store/apps/de...
    // DO THESE SIMPLE STEPS
    LIKE, SUBSCRIBE & SHARE
  • ХоббиХобби

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

  • @HayWhy_Pappy
    @HayWhy_Pappy Год назад +13

    This is by far the best channel with great mini projects for getting better at coding. Tyler Potts is the best.

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

    Great tutorial sir! 💚

  • @Darkest_of_Winter
    @Darkest_of_Winter Год назад +3

    I've learned so much from this video and the todo list video! I had a question on how to store those tasks from your todo vid. Hopefully you got the email.

  • @kukunase1686
    @kukunase1686 11 месяцев назад

    Awesome video and great sense of humour too

  • @kapuramanisoren7647
    @kapuramanisoren7647 7 месяцев назад

    Thanks for sharing it really helps :-)

  • @neozoid7009
    @neozoid7009 8 месяцев назад +3

    22:25 ~ js part
    03:32 ~ Html Divs
    06:07 ~ Css Start

  • @webprogrammingtutorials-alo69
    @webprogrammingtutorials-alo69 Год назад

    Very useful. Thanks

  • @welson9922
    @welson9922 6 месяцев назад +1

    remember to include this in your ValidateInput function to prevent users from entering multiple % sign.
    if (value == "%" && last_input == "%") {
    return false;
    }

  • @fatinfuyad2816
    @fatinfuyad2816 7 месяцев назад

    Very useful, video,, . , ❤. I enjoyed the logics, this is one of the best beginners project

  • @xspl_
    @xspl_ Год назад

    for the css part, when i clicked ctrl+s to save it and i went to my html file thingy, i didnt see anything save

  • @berniceyap3897
    @berniceyap3897 Месяц назад

    i've come across this problem where user can input multiple decimal. i've tried to optimize the validateinput to
    if( value == "." && last_input == "." || value == "." && input.lastIndexOf(operators)

  • @neozoid7009
    @neozoid7009 8 месяцев назад

    Time stamps would have been so much helpful >>>

  • @user-eb6yb7ck6v
    @user-eb6yb7ck6v Год назад +1

    Thank you very much for your video. How can I save data to localstorage?

    • @TylerPotts
      @TylerPotts  Год назад

      I have a few videos on localstorage on my channel! Hopefully they can help.

  • @sagaibrahim6178
    @sagaibrahim6178 11 месяцев назад +2

    one thing i noticed is when a decimal is too large, the output goes a little off screen

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

    it didn't work for me .. i mean the timer is not working ... neither in my local laptop nor in the server .. wonder why ... because i just downloaded the whole folder from github and tested it.

  • @RAYOFSUNTHEFIRST.
    @RAYOFSUNTHEFIRST. 10 месяцев назад +1

    when I opened the index htmp it didn't show me the numbers etc.. and when I recheck my code I did exactly the same things, can u help me know where I must've went wrong?

    • @Arebamasrura_z
      @Arebamasrura_z 9 месяцев назад

      same here

    • @RAYOFSUNTHEFIRST.
      @RAYOFSUNTHEFIRST. 9 месяцев назад

      @@Arebamasrura_z i think u should save the files in order to see changes!

  • @LS-dh6dh
    @LS-dh6dh 22 дня назад

    How do I delete my account

  • @notedbongo
    @notedbongo Год назад

    13:58

  • @rockydog7574
    @rockydog7574 5 месяцев назад

    I turned 3 minutes into 40 minutes 😂 and this vid is not for slow type people to make😅

  • @RUZERT
    @RUZERT 6 месяцев назад

    20:06

  • @needlesandpins1701
    @needlesandpins1701 Год назад

    what's ur vscode theme?

  • @welson9922
    @welson9922 6 месяцев назад +1

    In case nobody noticed, if the first number is 0 then the calculation will be completely wrong, for example 021 + 2 will return 19 when it should be 23. Make sure to correct the typo in the "PerpareInput" function that he wrote then just replace the entire PrepareInput function with this
    function PrepareInput(input) {
    // Replace percentages with their decimal equivalent
    let preparedInput = input.replace(/%/g, "/100");
    // Split the input into individual tokens
    let tokens = preparedInput.match(/(\d+\.\d+|\d+|\S)/g) || [];
    // Process each token to remove leading zeros in numbers
    for (let i = 0; i < tokens.length; i++) {
    if (!isNaN(tokens[i]) && tokens[i][0] === '0' && tokens[i].length > 1 && tokens[i][1] !== '.') {
    tokens[i] = tokens[i].replace(/^0+/, '');
    }
    }
    return tokens.join('');
    }

    • @berniceyap3897
      @berniceyap3897 Месяц назад

      sry mate i cant understand ur code, can u explain it?

  • @junderfitting8717
    @junderfitting8717 Год назад

    press option + ?get ➗