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)
2 ответов
+ 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
0
please anyone could answer this question