-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsSearch.js
More file actions
69 lines (58 loc) · 2.08 KB
/
Copy pathJsSearch.js
File metadata and controls
69 lines (58 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
function myFunction1(){
txt1="this is harendra student at bbd university";
return txt1.indexOf("is");
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction2(){
txt1="this is harendra student at bbd university";
return txt1.lastIndexOf("is");
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction3(){
txt1="this is harendra student at bbd university";
return txt1.indexOf("john");
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction4(){
txt1="this is harendra student at bbd university";
return txt1.lastIndexOf("doe");
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction5(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.indexOf("is",4);
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction6(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.lastIndexOf("is",40);
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction7(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.search("is");
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction8(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.match(/is/g);
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction9(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.includes("is");
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction10(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.includes("harendra",50);
}
// document.getElementById('demo').innerHTML=myFunction1();
function myFunction11(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.startsWith("this");
}
function myFunction12(){
txt1="this is harendra student at bbd university, this is all about me";
return txt1.endsWith("me");
}