Which incident Mesopotamia king is known for his code of laws?

A ) Nebuchadnezzar ll

B ) Hammurabi ✅

C ) Sargon of Akkad

D ) Ashurbanipal