how to write javascript to log a string code example Example: javascript console log console.log('string');