Home>indexOf() JavaScript String Method>Edit It: Find the index of 'day'Edit It: Find the index of 'day'This code shows how to find the index of 'day'.See it on StackBlitz