What was Jim Crow? In what ways did this differ from the earlier Black Codes?

What was Jim Crow? In what ways did this differ from the earlier Black Codes?