When hello becomes goodbye
The word hej is used when meeting someone and can also be used when leaving. Repeating it as hej hej makes the farewell especially recognisable. Listen for the stage of the conversation rather than treating the sound as an English greeting. At a shop counter, for example, the same word can occur both when you arrive and after you have paid.
A traditional farewell or a friendly closing?
Farvel remains a valid Danish goodbye, but in ordinary relaxed conversation it can feel more deliberate than hej hej. På gensyn also looks towards a future meeting and can sound somewhat traditional. Neither is incorrect. For a visitor who has just finished a brief exchange with a café worker, the shorter hej hej is a useful choice that requires little effort to pronounce.
Making the next meeting clear
Vi ses is an easy phrase to remember because it functions rather like English see you. When you actually know the next meeting will take place tomorrow, add i morgen. For somebody you may not meet again, hav det godt offers a wish for their wellbeing instead. This is a helpful distinction when leaving a holiday host at the end of your stay.