File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ const name = "ankit"
2
+ const repoCount = 1
3
+
4
+ console . log ( name + repoCount + " Value" ) ; //Not Prefer
5
+
6
+ console . log ( `Hello my name is ${ name } and my repo count is ${ repoCount } ` )
7
+
8
+ const gameName = new String ( 'hanank-ankit-singh' )
9
+
10
+ console . log ( gameName [ 0 ] ) ;
11
+ console . log ( gameName . __proto__ ) ;
12
+
13
+
14
+ console . log ( gameName . length ) ; // output =>
15
+ console . log ( gameName . toUpperCase ( ) ) ; // output =>
16
+ console . log ( gameName . charAt ( 2 ) ) ; // output =>
17
+ console . log ( gameName . indexOf ( 'n' ) ) ; // output =>
18
+
19
+ const newString = gameName . substring ( 0 , 4 )
20
+ console . log ( newString )
21
+
22
+ const anotherString = gameName . slice ( - 1 , 3 )
23
+ console . log ( anotherString )
24
+
25
+ const newStringOne = " hitesh "
26
+ console . log ( newStringOne ) ;
27
+ console . log ( newStringOne . trim ( ) ) ;
28
+
29
+ const url = "https://ankit.com/ankit%20singh"
30
+
31
+ console . log ( url . replace ( '%20' , '-' ) )
32
+
33
+ console . log ( url . includes ( 'ankit' ) )
34
+
35
+ console . log ( gameName . split ( '-' ) )
36
+
You can’t perform that action at this time.
0 commit comments