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