Skip to content
js Calculator
DogProgrammer
DogProgrammer
Published on Dec 4, 2021
  • #javascript
  • #Calculator
  • #simple
  • #fun
  • #nodejs

Js calculator! Enter calculator() to run again. Don't use to cheat on homework. Have fun! Sorry for the fact that you can only use numbers as operators. :(

18comments
BakedPotatoLord
BakedPotatoLord
2 months ago

have you tried using the built in eval() function?

ex: eval("(2+20)%8" )=> 6

KEEGANROY
KEEGANROY
2 months ago

it calculates but never outputs lol

Bot675108
Bot675108
2 months ago

The water rush down the wash and into the slot canyon below. Two hikers had started the day to sunny weather without a cloud in the sky, but they hadn't thought to check the weather north of the canyon. Huge thunderstorms had brought a deluge o rain and produced flash floods heading their way. The two hikers had no idea what was coming. There were only two ways to get out of this mess if they all worked together. The problem was that neither was all that appealing. One would likely cause everyone a huge amount of physical pain while the other would likely end up with everyone in jail. In Sam's mind, there was only one thing to do. He threw everyone else under the bus and he secretly sprinted away leaving the others to take the fall without him. They had no proof. He knew that they knew he had done it but they didn't have any proof. It was a huge distinction and it was the difference between him keeping his freedom or being locked away for decades. They continued to question him, probing him for information that they could use against him or find the proof they needed to put him away. He smiled and continued to block their every inquiry by feigning his innocence for a crime they all knew he committed. What were the chances? It would have to be a lot more than 100 to 1. It was likely even more than 1,000 to 1. The more he thought about it, the odds of it happening had to be more than 10,000 to 1 and even 100,000 to 1. People often threw around the chances of something happening as being 1,000,000 to 1 as an exaggeration of an unlikely event, but he could see that they may actually be accurate in this situation. Whatever the odds of it happening, he knew they were big. What he didn't know was whether this happening was lucky or unlucky. She tried not to judge him. His ratty clothes and unkempt hair made him look homeless. Was he really the next Einstein as she had been told? On the off chance it was true, she continued to try not to judge him. Matt told her to reach for the stars, but Veronica thought it was the most ridiculous advice she'd ever received. Sure, it had been well-meaning when he said it, but she didn't understand why anyone would want to suggest something that would literally kill you if you actually managed to achieve it. The time had come for Nancy to say goodbye. She had been dreading this moment for a good six months, and it had finally arrived despite her best efforts to forestall it. No matter how hard she tried, she couldn't keep the inevitable from happening. So the time had come for a normal person to say goodbye and move on. It was at this moment that Nancy decided not to be a normal person. After all the time and effort she had expended, she couldn't bring herself to do it. The bowl was filled with fruit. It seemed to be an overabundance of strawberries, but it also included blueberries, raspberries, grapes, and banana slices. This was the meal Sarah had every morning to start her day since she could remember. Why she decided to add chocolate as an option today was still a bit of a surprise, but she had been in the process of deciding she wanted to change her routine. This was a baby step to begin that start. Rhonda prided herself on always taking the path less traveled. She'd decided to do this at an early age and had continued to do so throughout her entire life. It was a point of pride and she would explain to anyone who would listen that doing so was something that she'd made great efforts to always do. She'd never questioned this decision until her five-year-old niece asked her, "So, is this why your life has been so difficult?" and Rhonda didn't have an answer for her. The light was out on the front porch of the house. This was strange. Judy couldn't remember a time when she had ever seen it out. She hopped out of her car and walked to the door. It was slightly ajar and she knew this meant something terrible. She gently pushed the door open and hall her fears were realized. "Surprise! Happy Birthday!" everyone shouted.

RahulChoubey1
RahulChoubey1
2 months ago

It returns a result, but does not log it?

Qwertenda
Qwertenda
2 months ago

Не працюэ, зависаэ чи що ??? Я вписую перше число, вписую знак і вписую друге число І мені не дає відповідь.

DogProgrammer
DogProgrammer
2 months ago

Do not try rn, editing...

Stockriderj
Stockriderj
2 months ago

Yeah, it doesn't work.

GBrayJ
GBrayJ
3 months ago

image that was amazing wow

need2pnow
need2pnow
3 months ago

whaaaaaaaaaat?

image

DogProgrammer
DogProgrammer
shared an update7 months ago
NEW! <javascript calculator>Post

fun, simple, and interesting calculator.

DogProgrammer
DogProgrammer
7 months ago

alpha testing is done. If you find any bugs, comment here >