If you are new to a Mac, this help page from Mac is an excellent resource to get you acquainted with the dock. It describes all the basics, including adding/removing icons, stacks, dock hiding, etc.