freeCodeCamp / freeCodeCamp/demo-projects

Bug: Example JavaScript Calculator accepts invalid input.

Open
#472 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
167
Forks
104
PR merge metrics
No merged PRs in 30d

Description

> ### Describe the Issue
> Example JavaScript Calculator accepts invalid input.
>
> ### Affected Page
> https://javascript-calculator.freecodecamp.rocks/
>
> ### Your code
> ```
> *2=
> ```
>
> ```
> /2=
> ```
>
> ```
> /2/2=
> ```
>
> ### Expected behavior
> It should ignore invalid input.
>
> ### Screenshots
> ![1](https://user-images.githubusercontent.com/12677127/212497796-da17ae62-4061-4fb4-9cfb-5906fd465284.png) ![3](https://user-images.githubusercontent.com/12677127/212497801-905d88b3-5542-41bd-aaa4-5ecca88a55ba.png) ![4](https://user-images.githubusercontent.com/12677127/212497805-68945581-fb04-459e-bf00-b054a0c0283c.png)
>
> ### System
> Device: Laptop OS: Windows 18.04.5 Browser: Chrome
>
> ### Additional context
> https://www.freecodecamp.org/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-javascript-calculator

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.