Skip to content

JavaScript Calculator displays an incorrect formula #49045

@diegoperezm

Description

@diegoperezm

Describe the Issue

JavaScript Calculator displays an incorrect formula.

Affected Page

https://javascript-calculator.freecodecamp.rocks/

Your code

+0+0+0+0+0+0+-1=

Expected behavior

  • It should not display 3 hyphens before the number 1
  • It should not display hyphens of different types

Screenshots

incorrect-formula

incorrect-formulat

System

Device: Laptop
OS: Ubuntu 18.04.5 LTS
Browser: Chromium
Version: 90.0.4430.72

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

    help wantedOpen for all. You do not need permission to work on these.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.status: decayedStale issues that need follow up from commentators. Were closed for inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions