-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsStringMathods1.js
More file actions
85 lines (76 loc) · 1.52 KB
/
Copy pathJsStringMathods1.js
File metadata and controls
85 lines (76 loc) · 1.52 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
function myStr(){
str="this is harendra";
return str;
}
function myStr1(){
str1="this is harendra";
str2=str1.toUpperCase();
return str2;
}
function myStr2(){
str3="THIS IS HARENDRA";
str4=str1.toLowerCase();
return str4;
}
function myConcat(){
text1="this is harendra";
text2="student at bbd univercity"
text3=text1.concat(" "+text2);
return text3;
}
function myConcat1(){
text1="this is harendra prajapti"
text2="he is student at bbd univercity"
text3="hello".concat(" "+text1+" "+text2);
return text3;
}
function myTrim(){
text1=" this is harendra prajapti "
text2=text1.trim();
return text2;
}
function myPadding(){
text1="5";
text2=text1.padStart(4,0);
return text2;
}
function myPadding1(){
text1="5";
text2=text1.padEnd(4,0);
return text2;
}
function mycharAt(){
text1="harendra";
text2=text1.charAt(0);
return text2;
}
function mycharCode(){
text1="harendra";
text2=text1.charCodeAt(0);
return text2;
}
function myFunction(){
text1="harendra";
text2=text1[0];
return text2;
}
function myFunction1(){
text1="harendra,prajapati";
text2=text1.split(",");
return text2;
}
function myFunction2(){
text1="harendra prajapati";
text2=text1.split(" ");
return text2;
}
function myFunction3(){
text1="harendra|prajapati";
text2=text1.split("|");
return text2;
}
function myFunction4(){
text1="harendra";
text2=text1.split("");
return text2;
}