Skip to content

Bug: Example JavaScript Calculator accepts invalid input. #472

@SAGARSINGH-1

Description

@SAGARSINGH-1

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 3 4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions