console.print javascript code example

Example 1: how to print to console javascript

console.log("string")

Example 2: javascript log to console

const varName = 'this variable';

console.log(varName);

Example 3: how to print console in javascript

console.log("message here")

Example 4: javascript console.log

console.log('I want to log this so I am logging this. Calm down and log.')

Example 5: javascript print to console

console.log("To Print");

Example 6: html console text

<script>
  console.log('%c text', 'background:---; color:---; font-size:---;');
</script>

Tags: