Skip to content

Commit 6b233fd

Browse files
committed
added concat string
1 parent a862c94 commit 6b233fd

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,19 @@ const anthum = 'Amar Sonar Bangla Ami Tomake Valobashi';
150150
// substring
151151
const anotherAnotherPart = anthum.substring(2,10)
152152
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+
153168
```

string-slice.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ const words=anthum.split(' ');
55

66
// slice
77
const smallSlice = anthum.slice(0,10)
8-
console.log(smallSlice);
8+
// console.log(smallSlice);
99

1010
// substr
1111
const anotherPart = anthum.substr(2,10)
1212
// console.log(anotherPart);
1313

1414
// substring
1515
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);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy