Get CSS values of a property

Is there any way to get the CSS value of a property?

I tried searching, but the only relevant post I could find was this one here (Get css properties from element). Someone wrote there that the answer given was incorrect, and I have tested it myself and it doesn’t seem to be relevant.

I don’t think there is a generic solution for all kinds of CSS values. What value do you need specifically?