Home » HTML » Html miscellaneous » Question
  1. In JavaScript, which one is used to finding the non-whitespace characters?
    1. \S
    2. \w
    3. \d
    4. \s
    5. None of these
Correct Option: A

There are metacharacters defined in JavaScript. \S is used to find the non-whitespace character. \d is used for finding a digit. \s is used for finding whitespace character. \w is used to find word character. \W is used to find non word character.



Your comments will be displayed only after manual approval.