-4

I inherited a project and have no idea what this does:

/\d/.test(password)

Any ideas?

j_d
  • 2,582
  • 8
  • 44
  • 84

1 Answers1

1

It checks that the password contains a digit (0-9).

slugo
  • 969
  • 2
  • 10
  • 22