0

Consider the following statements

var text = "testing: 1,2,3"; var pattern = ^d+/g in order to check if the pattern matches with the string " text", the statements is.. plz answer this question A. text==pattern. B. text.equals(pattern) C. text.test(pattern) D. pattern.test(text)

14th Nov 2016, 3:15 PM
Prashantha M.P
Prashantha M.P - avatar
2 Respuestas
+ 1
In sudo code: =========== If (Pattern is equal to text) { do this code here } Else, if it is NOT equal { do this code } In actual code you'd need something like this: ==================================== If (pattern == text) { alert("this is equal); } Else { alert("This is not equal!"); } Short answer..... A
15th Nov 2016, 12:13 PM
Pink Lemonade
0
please anyone could answer this question
14th Nov 2016, 3:17 PM
Prashantha M.P
Prashantha M.P - avatar