Q. What will be the output of the following JavaScript code?
Code:System.out.println( Pattern.matches("[lfc]?", "l") );
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
System.out.println( Pattern.matches("[lfc]?", "l") );
System.out.println( Pattern.matches("\d", "9") );
System.out.println( Pattern.matches("[^lfc]", "letsfind") );
System.out.println( Pattern.matches("[lfc]+", "f") );
onchange is triggered when the value of an <input> (text field) changes and the user moves focus away from it.
Note:
< body> < form name="register"> Enter username < input value="John" id="name" name="username"> < /form> < /body>
< body> < form name="login"> Enter Your Name< input value="Akash" id="p_name" name="uname"> < /form> < /body>