Created
August 17, 2023 16:45
-
-
Save suhailgupta03/c6eaa1056d0af298b79f420a9f912a70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let string = `Hi! Recently India celebrated its Independence Day` | |
// 1. Find all 'e' and replace it with 'E' | |
// 2. Replace the 'Independence Dat' in the sentence with 'Republic Day' | |
// 3. Find the index of 'India' in the string | |
let string2 = "hello world how are you?"; | |
// 1. Find all the spaces in the string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution for string 2: