Build A Simple Calculator With JavaScript | Mini Project For Beginners

  Рет қаралды 59,837

WEB CIFAR

WEB CIFAR

Күн бұрын

Пікірлер: 74
@webcifar
@webcifar 4 жыл бұрын
🔔subscribe and turn on the notification bell. 👉 source code: codepen.io/Web_Cifar/pen/XWdVgXr 👉 #30days30submits : github.com/ShaifArfan/30days30submits
@stevevang506
@stevevang506 3 жыл бұрын
The BEST JS calculator tutorial on the web. hands down.
@nikhilraj4098
@nikhilraj4098 3 жыл бұрын
Hands down the best calculator on vanilla JavaScript period. Every one uses eval function and you hard coded the logic, and you added so much functionality and all this is 1 hour, Please make such good projects more that help us in learning how to form logic. This video is under-rated
@rubaiyabegum1722
@rubaiyabegum1722 3 жыл бұрын
got this project done without any suffering....Jazakallah khair
@soldishero_y
@soldishero_y Жыл бұрын
Thanks. A little confused with numbs and elements but helpful tutorial!
@Ace718215
@Ace718215 3 жыл бұрын
Awesome tutorial brother best js calc tutorial ive seen. keep up the great work
@webcifar
@webcifar 3 жыл бұрын
Thanks
@speedbump164
@speedbump164 2 жыл бұрын
this was an amazing tutorial. the design and code itself are great. this is exactly what i needed to troubleshoot my own calculator app. you definitely earned a thumbs up and a sub. thank you so much
@barryowino1485
@barryowino1485 2 жыл бұрын
The best calculator built with vanilla JS...keep it up
@charlesjoma536
@charlesjoma536 2 жыл бұрын
Awesome Tutorial, keep them coming, awesome how you walked through the reasoning for everything!! Helped me Alot Thank you
@blackwidow4real
@blackwidow4real 3 жыл бұрын
Thank you kindly sir, you are explaining it very well and it was fun to follow along and make this calculator with you
@MaximilienBrunet
@MaximilienBrunet Жыл бұрын
Great! Thank you very much! 🙏🙏🙏
@chisomannastesia982
@chisomannastesia982 2 жыл бұрын
tank you for this awesome guide. its so beginner friendly
@kenethnjoroge5313
@kenethnjoroge5313 3 жыл бұрын
If not for anything, you winned me over as a subscriber coz of this video... Thank you for the great work🔥!
@TioYoh
@TioYoh 3 жыл бұрын
Thank you for the class! I learned a lot!
@MuhammadAdnan2.0
@MuhammadAdnan2.0 4 жыл бұрын
great history feature still watching ,,,,,,,, unique really :D validation as well
@webcifar
@webcifar 4 жыл бұрын
Thank You ✌
@Alan-ox2hp
@Alan-ox2hp 3 жыл бұрын
Good video, thanks. Good to learn from different sources. many thanks
@elexafm
@elexafm 4 жыл бұрын
thank you so much for this video. you explained sooo well the logic that i was able to make some changes for my own calculator project. like subscribe and share for this gentleman
@riajmahmud4303
@riajmahmud4303 Жыл бұрын
This is the best calculator titurial
@rohanshoaib1475
@rohanshoaib1475 4 жыл бұрын
Great Job man!!
@dgross4735
@dgross4735 2 жыл бұрын
Excellent work. One question, What would need to be done to change the color of a key or row of keys like at the top to be a different color than the number set below...?
@onyinyechukwuma4272
@onyinyechukwuma4272 3 жыл бұрын
This was so helpful. thanks
@shoeb_akter
@shoeb_akter 3 жыл бұрын
You are AWSOME🔥
@webcifar
@webcifar 3 жыл бұрын
Thanks Brother ♥
@samarjamil3053
@samarjamil3053 4 жыл бұрын
Great job 👌
@webcifar
@webcifar 4 жыл бұрын
Thank you
@istiakahammad7074
@istiakahammad7074 4 жыл бұрын
Thanks for this video
@webcifar
@webcifar 4 жыл бұрын
Most welcome
@madhavsewag4804
@madhavsewag4804 3 жыл бұрын
How can I do continue calculation with = operator
@jayeshbansod8515
@jayeshbansod8515 3 жыл бұрын
Uncaught typeError : numbersE1.forEach is not a function at......... Sir sir why it is happening and what do it for this error. Please tell me
@fittingprize8135
@fittingprize8135 3 жыл бұрын
same here, do u find the solution ?
@mateuszmichalski6747
@mateuszmichalski6747 3 жыл бұрын
check if you have const numbersEl = document.querySelectorAll(''number'). At first I also had this error but I noticed that I have const set with just .querySelector (without 'All' at the end)
@sprahzyend7535
@sprahzyend7535 4 жыл бұрын
Good tutorial!
@webcifar
@webcifar 4 жыл бұрын
Thanks!
@Harrison2
@Harrison2 4 жыл бұрын
dope...going to start on an earlier video
@webcifar
@webcifar 4 жыл бұрын
Go for it!
@istiakahammad7074
@istiakahammad7074 4 жыл бұрын
Can you make a sciencetific calculator?
@webcifar
@webcifar 4 жыл бұрын
I can try
@alijaafar4055
@alijaafar4055 3 жыл бұрын
forEach loop is giving me an error, why
@jassrajput890
@jassrajput890 4 жыл бұрын
awesome
@ЛюдмилаЖерко
@ЛюдмилаЖерко 3 жыл бұрын
There is a small bug . if second operand is empty and has "." value and when you press equal button the result says NaN. Nevertheless great tutorial
@webcifar
@webcifar 3 жыл бұрын
Thanks for mentioning it.
@taslucian
@taslucian Жыл бұрын
I like this code. It is verry clean and verry clear, but the calculator is not doing the calculations in the correct order. This is happening because of the temporary result. One example is: 2+3*2 . The result should be 8, but the calculator give the result 10 witch is not correct. How can we fix this?
@MuhammadAdnan2.0
@MuhammadAdnan2.0 4 жыл бұрын
Day 29 portfolio something like this. www.templateshub.net/demo/?theme=robert-personal-onepage-html-template
@eelguneezmemmedov1671
@eelguneezmemmedov1671 3 жыл бұрын
What u say and write i understand clearly but when i start to code by myself i stuck ((( Could u say why ? how u became to this level ?
@webcifar
@webcifar 3 жыл бұрын
It happens with everybody. You need to keep trying.
@eelguneezmemmedov1671
@eelguneezmemmedov1671 3 жыл бұрын
@@webcifar Thanks for feedback i will do my best!
@basseyjennifer5601
@basseyjennifer5601 3 жыл бұрын
thank you
@webcifar
@webcifar 3 жыл бұрын
You're welcome
@lerdrobott549
@lerdrobott549 3 жыл бұрын
This code doesnt follow MDAS
@ahadamin7361
@ahadamin7361 2 жыл бұрын
31:33
@ce7083
@ce7083 4 жыл бұрын
Dude, I was follow every step on this video tutorial but my calculator doesn't want to click (unclickable) - What the heck is going on? how I can connect with you? How do I know if you or someone replying this my message in youtube?
@ce7083
@ce7083 4 жыл бұрын
Its only the UI that's work, in my code.. pls some help?
@webcifar
@webcifar 4 жыл бұрын
Check the click eventlistener. If you are still facing the problem just join the facebook group and there you will find me.
@ce7083
@ce7083 4 жыл бұрын
@@webcifar Thanks a lot for replying my message dude I really appreciate it, for now I don't have FB account I'll make it & finding you (on it) later..
@manjupriyakarthikeyan
@manjupriyakarthikeyan 4 жыл бұрын
@@ce7083 same problem for me (unclickable.).if you find a solution for that .help me
@tehannasmall2316
@tehannasmall2316 3 жыл бұрын
@@ce7083 hi, did you get the buttons to become clickable?? I don't have Facebook to connect with you
@devShahriar
@devShahriar 3 жыл бұрын
You need to work more on logic brother , keep it up
@webcifar
@webcifar 3 жыл бұрын
Thank you
@techwithoge6899
@techwithoge6899 4 жыл бұрын
This is so nice, made something similar to this ya'll can check it out
@raquels6354
@raquels6354 3 жыл бұрын
this tutorial is great but the tutor doesn't explain well. he gets confused many times and can't explain in words cleary what he is doing and why.
@webcifar
@webcifar 3 жыл бұрын
Thanks for your feedback.
@rubelbarua9953
@rubelbarua9953 3 жыл бұрын
Too much code
@СахидамСадирова
@СахидамСадирова 2 жыл бұрын
Ьл
@bineethl2666
@bineethl2666 3 жыл бұрын
Kindly clear how can we connect the haveDot to e.target.innertext in this condition -- if (e.target.innertext==='.' &&!have dot) havaDot=true;
@webcifar
@webcifar 3 жыл бұрын
if we are clicking do (e.target.innertext) and we don't have a dot yet in out number then add the dot also make have Dot true.
@bineethl2666
@bineethl2666 3 жыл бұрын
Hello sir, I convinced with your point thx a lot but my query is how this condition will understand by calculator if( e.target.innertext == '.'(convinced) &&!haveDot (this condition not convinced mean how calculator will know that we dont have dot previously in a number by this condition because we dont mention anywhere haveDot is equal to '.' And We simply considered haveDot is boolean as false ) ) Kindly explain please!!!
@webcifar
@webcifar 3 жыл бұрын
@@bineethl2666 Initially the haveDot value is false but when we are clicking the dot if you can see we are changing the value of haveDot to true. Now it means we have the dot inside the number. After that you can't add another dot in the same number because the haveDot is now true. and when we are adding a new number, if you notice we are again changing the havDat value to false so that user can add dot to the new number.
@bineethl2666
@bineethl2666 3 жыл бұрын
@@webcifar thnks a lot 👍
@bineethl2666
@bineethl2666 3 жыл бұрын
Why we have given haveDot value is false ; we can give it true also and apply condition vice versa;
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 729 М.
how to build a simple calculator using javascript
27:22
Ranjan-Beginner's Guide
Рет қаралды 80 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
5 Mini JavaScript Projects - For Beginners
1:45:09
Tech With Tim
Рет қаралды 119 М.
Build A Clock With JavaScript
17:43
Web Dev Simplified
Рет қаралды 362 М.
THE ODIN PROJECT: FOUNDATIONS - CALCULATOR | PROJECT SOLUTION
35:20
Dors Coding School
Рет қаралды 10 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 175 М.
How To Make A Calculator Using HTML CSS And JavaScript
19:01
GreatStack
Рет қаралды 964 М.
I Helped 2,000 People Walk Again
15:31
MrBeast
Рет қаралды 20 МЛН
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,1 МЛН
ReactJS Tutorial - Build a Calculator App from Scratch
23:08
Software Sage
Рет қаралды 28 М.
Create a simple calculator using HTML, CSS, JavaScript
13:35
JavaScript Academy
Рет қаралды 253 М.