From 283879cb05d247029ee32493258136181470e049 Mon Sep 17 00:00:00 2001 From: CompactCode Date: Sat, 4 Jan 2020 00:17:29 +0100 Subject: [PATCH] Update readMe.md lastIndexOf returns last occurrence of the word --- readMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readMe.md b/readMe.md index e96541f..76a7f28 100644 --- a/readMe.md +++ b/readMe.md @@ -1263,7 +1263,7 @@ I would like to recommend you to read about operator precendence from this [link 16. Use __indexOf__ to determine the position of the first occurrence of a in 30 Days Of JavaScript 17. Use __lastIndexOf__ to determine the position of the last occurrence of a in 30 Days Of JavaScript. 18. Use __indexOf__ to find the position of the first occurrence of the word __because__ in the following sentence:__'You cannot end a sentence with because because because is a conjunction'__ -19. Use __lastIndexOf__ to find the position of the first occurrence of the word __because__ in the following sentence:__'You cannot end a sentence with because because because is a conjunction'__ +19. Use __lastIndexOf__ to find the position of the last occurrence of the word __because__ in the following sentence:__'You cannot end a sentence with because because because is a conjunction'__ 20. Use __search__ to find the position of the first occurrence of the word __because__ in the following sentence:__'You cannot end a sentence with because because because is a conjunction'__ 21. Use __trim()__ to remove if there is trailing whitespace at the beginning and the end of a string.E.g ' 30 Days Of JavaScript '. 22. Use __startsWith()__ method with the string *30 Days Of JavaScript* make the result true