how to make console.log display output in webpage code example Example: how to use js console log console.log('string');