TV has headphone jack that will work if the soundbar has an aux input.
TV also has coax digital audio output. You may need a converter depending on the make and model of the soundbar. You can convert coax to the more common optical audio.
Check the TV manual on how to use the audio outputs. You may need to turn it on, turn the TV speakers off, and change the audio output type to get it working.