What kind of effect does alliteration create in wrting?

http://en.wikipedia.org/wiki/Alliteration

Alliteration is a literary device that involves the repetition of the initial consonant sounds in words that are close together. It is commonly used in poetry, literature, and even in everyday speech. The primary effect that alliteration creates in writing is an emphasis on certain words and phrases. It can add rhythm, musicality, and a sense of cohesion to a piece of writing. By repeating certain sounds, alliteration can help to capture the reader's attention and make the text more memorable. It can also create a specific mood or tone, depending on the context in which it is used. For example, alliteration can be used to create a sense of playfulness or emphasize a particular idea or image. Overall, alliteration is a powerful tool that writers use to add depth and impact to their work.