-4

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

/\d/.test(password)

Any ideas?

j_d
  • 2,818
  • 9
  • 50
  • 91

1 Answers1

1

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

slugo
  • 1,019
  • 2
  • 11
  • 22