Why does my computer get slow and make some weird sound sometimes, like randomly for a few seconds then it stops?

It's only a few weeks old, and it only happens every few days, but it might make some weird sound for a few seconds and get slow, but then it's better all of a sudden.
4 answers 4