For example if you have a list as
names = ['John','Mary','Peter', 'Dave','Anne'],
names.indexOf('Dave') will return
If the item is not in the list, it will return -1.
If the item appears more than one in the list, the first position found will be returned (since bubble lists don’t have duplicates this shouldn’t be an issue for you).