Consider the following statements var text = "testing: 1, 2, 3"; // Sample text var pattern = /\d+/g In order to check if the pattern matches with the string "text", the statement is
A) text==pattern
B) pattern.test(text)
C) text.test(pattern)
D) text.equals(pattern)
Correct Answer:
Verified
Q14: The <link> tag goes inside
A)body section
B)head section
C)style
Q15: When does JavaScript code appear inline within
Q16: Which is the root element in a
Q17: What is the default value of the
Q18: What are the objects in Java Script?
A)Document
Q19: JavaScript Code can be called by using
A)RMI
B)Triggering
Q20: A hexadecimal literal begins with
A)00
B)0x
C)0X
D)Both b and
Q21: The escape sequence '\f' stands for
A)Floating numbers
B)Representation
Q22: The snippet that has to be used
Q24: A function definition expression can be called
A)Function
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents