Build a Calculator App in HTML, CSS & JavaScript 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 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!
    th-cam.com/users/tylerpottsjoin
    // MY GEAR FOR CODING AND TH-cam
    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
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 34

  • @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 ปีที่แล้ว

    Great tutorial sir! 💚

  • @kukunase1686
    @kukunase1686 ปีที่แล้ว

    Awesome video and great sense of humour too

  • @webprogrammingtutorials-alo69
    @webprogrammingtutorials-alo69 ปีที่แล้ว

    Very useful. Thanks

  • @kapuramanisoren7647
    @kapuramanisoren7647 10 หลายเดือนก่อน

    Thanks for sharing it really helps :-)

  • @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.

  • @fatinfuyad2816
    @fatinfuyad2816 10 หลายเดือนก่อน

    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

  • @neozoid7009
    @neozoid7009 10 หลายเดือนก่อน +3

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

  • @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.

  • @berniceyap3897
    @berniceyap3897 4 หลายเดือนก่อน

    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)

  • @susanafernandez4164
    @susanafernandez4164 ปีที่แล้ว +3

    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.

  • @sagaibrahim6178
    @sagaibrahim6178 ปีที่แล้ว +2

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

  • @welson9922
    @welson9922 8 หลายเดือนก่อน +1

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

    • @xzvxzvr
      @xzvxzvr 19 วันที่ผ่านมา

      after which part do you put this at

  • @RAYOFSUNTHEFIRST.
    @RAYOFSUNTHEFIRST. ปีที่แล้ว +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 11 หลายเดือนก่อน

      same here

    • @RAYOFSUNTHEFIRST.
      @RAYOFSUNTHEFIRST. 11 หลายเดือนก่อน

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

  • @neozoid7009
    @neozoid7009 11 หลายเดือนก่อน

    Time stamps would have been so much helpful >>>

  • @LS-dh6dh
    @LS-dh6dh 3 หลายเดือนก่อน

    How do I delete my account

  • @notedbongo
    @notedbongo ปีที่แล้ว

    13:58

  • @RUZERT
    @RUZERT 8 หลายเดือนก่อน

    20:06

  • @rockydog7574
    @rockydog7574 8 หลายเดือนก่อน

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

  • @needlesandpins1701
    @needlesandpins1701 ปีที่แล้ว

    what's ur vscode theme?

  • @welson9922
    @welson9922 8 หลายเดือนก่อน +2

    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 4 หลายเดือนก่อน

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

  • @junderfitting8717
    @junderfitting8717 ปีที่แล้ว

    press option + ?get ➗