Make objects selectable in ThreeJS

Unfortunately, I’m new to ThreeJs.
I have a question, how I can make an object selectable in ThreeJS?
I mean that the user can select an object and in the background, I can detect its selection and work with it.