Skip to content

Broken example for Number.MIN_VALUE #2372

@dsletten

Description

@dsletten

Request type

  • [] Please close this issue, I accidentally submitted it without adding any details
  • New documentation
  • Correction or update

Details

The sample function multiply() on this page is broken: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE

First of all, Number.MIN_VALUE has nothing to do with -Infinity. The example is conceptually confused.

Moreover, any negative product of x and y will pass the test since Number.MIN_VALUE is a positive number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:JSJavaScript docshelp wantedIf you know something about this topic, we would love your help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions