Skip to content
Browse files

Update js-String-prototype-slice.md

  • Loading branch information...
1 parent 924d2b0 commit 58695a1924bfc4bd9b39b9e0ac494ddf9ce67c22 @matty22 matty22 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 js-String-prototype-slice.md
View
4 js-String-prototype-slice.md
@@ -25,7 +25,7 @@ Optional. The zero-based index where the slice should end. If omitted, `.slice()
## Examples
-**Using slice() to create a new string**
+**Using `.slice()` to create a new string**
```js
var string1 = "Hello World!";
var string2 = string1.slice(3);
@@ -36,7 +36,7 @@ console.log(string3); // Will log "lo W"
```
-**Using slice() with negative indices**
+**Using `.slice()` with negative indices**
```js
var string = "Hello World!"

0 comments on commit 58695a1

Please sign in to comment.
Something went wrong with that request. Please try again.