Skip to content

Line 19 is missing .toString() #22

@kyyeo

Description

@kyyeo
`if (number === '.' && this.currentOperand.includes('.')) return`  

should be
if (number === '.' && this.currentOperand.toString().includes('.')) return

otherwise, appending a dot is not possible after a equalsButton compute()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions