Share your repls and programming experiences

← Back to all posts
#WEEKLY Calculator!
h
CodingCactus (4367)

Hi, I made a thingy!

So basically, I know no js so don't look in script.js unless you want to be offended by it.

This calculator just does calculations for 2 numbers

i.e.
1+1=2
rather than 1+1+1

You can however do:
1+1=2
+1=3
If you understand what I mean lol.

I spent quite a bit of time making the backspace work when going back from your second number or the operation so i hope you like it lol (The amount of time taken is just due to the fact that i don't know js).

That's all (I think)

Oh wait, i forgot
To do negatives, press the NEG(-) button rather than the - button, the - is just for subtracting.

Shoot I forgot to add decimals. They have been added now!

Comments
hotnewtop
lilykhan (862)

looks cool cc!! ヽ(・∀・)ノ

TheDrone7 (1900)

SCORED.
And as for that thing that I both liked and disliked is the fact that when you click an operator, it clears the rest of the display, this makes it look much cleaner but also makes it harder to confirm that you're performing the right calculation.

CodingCactus (4367)

@TheDrone7 ah ok, I thought that might have been what it was : )

HahaYes (1864)

hmmm should do weekly just for the cycles

cycle farming intensifies

Cookiezz (65)

Cool! Maybe you could add an "ERROR" thing when you divide by 0. lol

Barry123 (350)

Wow this is so cool!

ComputingSquid (47)

👏 good job, I cant do that well

DynamicSquid (4929)

can't even do advanced calculus smh

no but seriously nice work!

CodingCactus (4367)

@DynamicSquid well if i'm honest, I didn't want to do extra work also i'm stupid cuz Mr Drone7 said it doesn't need to do that stuff

studentAlfredAl (446)

Happy birthday by the way :D

studentAlfredAl (446)

lol np :) How old are you now? @CodingCactus

DynamicSquid (4929)

@studentAlfredAl cacti can live anywhere between 10-200 years. He might be 3, or 189, who knows