Finely shred the cabbage.
Thinly julienne the carrots.
Put the cabbage and carrots in a bowl and sprinkle with salt. Let sit for 10 minutes.
Squeeze out the moisture from the salted ingredients.
Add mayonnaise, vinegar, sugar, salt, and pepper, and mix until well combined.