When you buy a bond, you’re loaning money to the bond’s issuer—which could be a corporation, a local municipality, a government agency or the federal government—with the intention of receiving back your initial investment and, in most cases, interest. But not all bonds are created equal.