What would happen if you didn't add salt to pasta while it is cooking?

Nothing. The salt you add to pasta adds flavor to the pasta. You'd still have pasta that looks and tastes exactly like pasta, just with less salt in it.

There is a misconception that salt reduces the boiling point of water, when in fact the opposite is true.