Dear candidates you will find MCQ questions of JavaScript here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
var text = "lestfindcourse: 1, 2, 3"; var pattern = /d+/g;
In regular expressions, [^...] matches any one character that is not listed inside the brackets.
Example:
let regex = /[^abc]/;
console.log(regex.test('d')); // true (because 'd' is not 'a', 'b', or 'c')
System.out.println( Pattern.matches("[lfc]", "lets") );