Egg yolk is used as a binding agent in chocolate chip cookies. It helps to hold the cookie together and gives it a chewy texture.