Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by user3939382

4 months ago

Please forgive my tangential rant on the DOM. You have an input field where type=number and when you read it with .value() you get a string. Cmon man.

1 comment

user3939382

Reply

MildlySerious  4 months ago

There is .valueAsNumber. input.value returns a string, regardless of the input type. Making the return type dynamic would be worse, imo.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities