system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: why are stocks worth anything?

I can understand that people would want stocks from companies who give out big dividends. The better the company does, the bigger the dividend and thus bigger the worth of the stock.

What I don't understand is stock worth of companies who DON'T give out dividends, like Apple. If a company does good, why does it affect the stock's price? You aren't seeing any of that money as a stockholder. Isn't the price then completely arbitrary? It's based on demand but *why is there demand?*
gpt
Stock in a company gives you ownership of that companys assets. 

Gold doesn't pay dividends either, yet its popular for investing in. 
The only real difference for an investor between gold and stock is that gold is likely to be more predictable in value.