Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions readMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ console.log(country.startsWith('fin')) // false
console.log(country.startsWith('land')) // false
```

17. *endsWith*: it takes a substring as an argument and it checks if the string starts with that specified substring. It returns a boolean(true or false).
17. *endsWith*: it takes a substring as an argument and it checks if the string ends with that specified substring. It returns a boolean(true or false).

```js
string.endsWith(substring)
Expand Down Expand Up @@ -2190,7 +2190,7 @@ console.log(numbers); // -> [2,3,4,5]

```js
const numbers = [1, 2, 3, 4, 5];
numbers.unshift(0); // -> remove one item from the beginning
numbers.unshift(0); // -> adds one item to the beginning
console.log(numbers); // -> [0,1,2,3,4,5]
```

Expand Down Expand Up @@ -2590,7 +2590,7 @@ Getting values from an object:
console.log(person.lastName);
console.log(person.getFullName());
// value can be accessed
console.log(person['age');
console.log(person['age']);
console.log(person['location']);
```

Expand Down