How to build a SIMPLE Javascript Calculator with just HTML, Javascript, CSS (without eval() method)
HTML-код
- Опубликовано: 29 июн 2023
- In this tutorial we'll cover how to build a real simple Calculator using Javascript, HTML and CSS - without frameworks and without using the eval() method.
There are many many many ways of creating a Calculator in Javascript, but though that this might help get an easier grasp of some Javascript basics.
There are lots of ways to optimize and improved this calculator
Git repo here:
github.com/coding-mentorship-...
Eval() function (no longer recommended)
developer.mozilla.org/en-US/d...
I'm creating the Odin Project calculator for the Foundations Path. I think your video really helped keep things simple, so just wanted to say thanks for this tutorial, Jonathan!
loved the serene background music while watching, god bless you my friend
The video was very helpful, thanks 🙏🏻
Glad it was helpful!
Very simple and nice👌. Made me feel like a pro even though am a junior.
Glad it helped, yes trying to keep it as simple as possible, is good
Does this work only with two operands 🙄
yes
Good luck
friendly reminder for those who don't know- always use semicolons! :)
loved the serene background music while watching, god bless you my friend