The “stock market” is a broadly-used term encompassing a group of markets in which the regular purchase, sale, and issuance of shares/stocks with publicly held companies occur.
You could say that the “stock market” represents an umbrella term for such markets. Several individual stock exchanges make up the stock market. The most popular are stock exchanges in the United States: the NYSE or the New York Stock Exchange, and the Nasdaq. In India, well-known exchanges are the BSE or the Bombay Stock Exchange and the NSE or the National Stock Exchange. These exchanges, among various others, make up the stock markets in their respective countries.
Through stock markets, stocks are bought and sold via exchanges. While it is referred to as the “stock market”, or the “equity market”, there are other financial instruments like commodities, bonds, derivatives, and currencies that are traded/transacted on the stock market too.