How would you react if someone suddenly told you they loved you out of nowhere?

I was very confused and I said “thanks” lmao

Updates
10 mo
He is a person I know, a friend lol
How would you react if someone suddenly told you they loved you out of nowhere?
Post Opinion