How to make soundbar work with PS4 slim

Nov 22, 2018
I have PS4 Slim and im thinking of buying soundbar. The problem is that PS4 slim or my tv doenst have optical audio port. My tv doenst have ARC either. So can i connect my PS4 to soundbar with hdmi and then attach another hdmi cable from soundbar to tv?