A simple calculator using HTML, CSS and JavaScript

Hari Sapna Nair
2 min readMay 18, 2020
This is how our calculator will look like 😍😍😍

You can build this calculator using basic HTML, CSS, and Javascript

Source Code

Why Strict Equality Operator is used instead of Equality operator ??

Both strict equality operators and abstract equality operators can be used but it is more appropriate to use strict equality due to the following reason.

The strict equality operator (===) behaves identically to the abstract equality operator (==) except no type conversion is done, and the types must be the same to be considered equal.

The == operator will compare for equality after doing any necessary type conversions. The === operator will not do the conversion, so if two values are not the same type === will simply return false. Both are equally quick.

Read this for more details- Stackoverflow

Initial View

Data Entry View

Result View

Now try using it yourself 😊.

About the Author

Currently, I am pursuing BTech in Electronics and Instrumentation from the College of Engineering Trivandrum.

I am a newbie in the field of web development and I love to do competitive programming. I have worked on open source projects as a part of GSSoC’20 by GirlScript Foundation. In my free time, I write answers on Quora and blogs on Medium.

If you want to get connected with me, please follow the links

Github-https://github.com/Sapna2001

LinkedIn-https://www.linkedin.com/in/sapna2001/

Website-https://sapna2001.github.io/Portfolio/

Quora-https://www.quora.com/profile/Sapna-191

If you have any suggestions, feel free to get in touch with me over LinkedIn & the comment section is also all yours.

If you liked this story, hit the claps & motivate me to write more & better.

Thanks for reading!!!!

--

--