You'll make mistakes in both, but in a statically typed language the compiler catches more of them for you.