Debugging and Testing in React Native

What is the purpose of using console.log() for debugging in React Native?