[] is used to define an array
() are just brackets, to make sure logical and arithmetic operations happen in the right order
{} indicate strings or code. Sometimes they are equivalent to quotes " ".
<> has no meaning as brackets, these symbols are used for less than and greater than.
If you use the wrong type of bracket your code won't work.