How salt and sugar act as preservatives?

determine how salt and sugar act as preservatives???
help me.. pls.. tnx for your answers...
2 answers 2