-
Notifications
You must be signed in to change notification settings - Fork 0
/
JsString.js
107 lines (88 loc) · 2.26 KB
/
JsString.js
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
function myString(){
let h1="i am harendra prajapati and i am mca student at bbd univercity";
return h1;
}
function myLength(){
let text="i am \'harendra prajapati\' and i am mca student at bbd univercity";
return text.length;
}
function myString1(){
let text="i am \'harendra prajapati \' i am mca student at bbd univercity";
return text;
}
function myString2(){
let text="i am \"harendra prajapati \" i am mca student at bbd univercity";
return text;
}
function myString3(){
let text="i am harendra prajapati \\ i am mca student at bbd univercity";
return text;
}
function myFunction(){
let text="i am harendra prajapati \b i am mca student at bbd univercity";
return text;
}
function myFunction1(){
let text="i am harendra prajapati \f i am mca student at bbd univercity";
return text;
}
function myFunction2(){
let text="i am harendra prajapati \n i am mca student at bbd univercity";
return text;
}
function myFunction3(){
let text="i am harendra prajapati \t i am mca student at bbd univercity";
return text;
}
function myFunction4(){
let text="i am harendra prajapati \r i am mca student at bbd univercity";
return text;
}
function myFunction5(){
let text="i am harendra prajapati \v i am mca student at bbd univercity";
return text;
}
function myFunction6(){
let text="i am harendra prajapati \ i am mca student at bbd univercity";
return text;
}
function myFunction7(){
let text="i am harendra prajapati ! i am mca student at bbd univercity";
return text;
}
function newString(){
let x = "John";
let y = new String("John");
return typeof x;
return typeof y;
}
function newString1(){
let x = "John";
let y = new String("John");
return typeof y;
}
function myFunction_h0(){
let h1="harendra";
let h2="harendra";
return (h1==h2);
}
function myFunction_h1(){
let h1="harendra";
let h2=newString("harendra");
return (h1===h2);
}
function myFunction_h2(){
let h1="harendra";
let h2=newString("harendra");
return (h1==h2);
}
function myFunction_h3(){
let h1=newString("harendra");
let h2=newString("harendra");
return (h1==h2);
}
function myFunction_h4(){
let h1="harendra";
let h2=newString("harendra");
return (h1==h2);
}