Skip to content

Commit 9aeb570

Browse files
committed
substr code
1 parent 907057b commit 9aeb570

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

string-slice.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ const words=anthum.split(' ');
55

66
// slice
77
const smallSlice = anthum.slice(2,10)
8-
console.log(smallSlice);
8+
console.log(smallSlice);
9+
10+
const anotherPart = anthum.substr(2,10)
11+
// console.log(anotherPart);

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