why we choose console.log in javascript code example Example: how to use js console log console.log('string');