File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -150,4 +150,19 @@ const anthum = 'Amar Sonar Bangla Ami Tomake Valobashi';
150
150
// substring
151
151
const anotherAnotherPart = anthum .substring (2 ,10 )
152
152
console .log (anotherAnotherPart);
153
+ ```
154
+ - concat the string.
155
+ ``` javascript
156
+ // concat
157
+ const first = ' Amar' ;
158
+ const second = ' City' ;
159
+ // const fullString = first + second;
160
+ const fullString = first .concat (second).concat (' @gmail' )
161
+ console .log (fullString);
162
+ ```
163
+ ``` javascript
164
+
165
+ ```
166
+ ``` javascript
167
+
153
168
```
Original file line number Diff line number Diff line change @@ -5,12 +5,19 @@ const words=anthum.split(' ');
5
5
6
6
// slice
7
7
const smallSlice = anthum . slice ( 0 , 10 )
8
- console . log ( smallSlice ) ;
8
+ // console.log(smallSlice);
9
9
10
10
// substr
11
11
const anotherPart = anthum . substr ( 2 , 10 )
12
12
// console.log(anotherPart);
13
13
14
14
// substring
15
15
const anotherAnotherPart = anthum . substring ( 2 , 10 )
16
- console . log ( anotherAnotherPart ) ;
16
+ // console.log(anotherAnotherPart);
17
+
18
+ // concat
19
+ const first = 'Amar' ;
20
+ const second = 'City' ;
21
+ // const fullString = first + second;
22
+ const fullString = first . concat ( second ) . concat ( '@gmail' )
23
+ console . log ( fullString ) ;
You can’t perform that action at this time.
0 commit comments