How does JavaScript judge a letter to be lowercase and uppercase?

  node.js, question

How does JavaScript judge a letter to be lowercase and uppercase?

/[A-Z]/.test("A") // true
 /[A-Z]/.test("b") // false