Using iMac as second monitor for MacBook pro
I have a 27” iMac late 2013, and I would like to use it as my secondary monitor to my MacBook Pro 2020. I noticed there is no HDMI cord in the back of the iMac. I do have a multiport adapter for a HDMI cord for my MacBook, but nothing for the iMac.
Which cord should I use to connect them?
iMac 27″, macOS 10.15