print variable in js code example
Example 1: print things js
console.log("Hello World");
Example 2: js how to print
console.log(text);
Example 3: how to print a line in javascript
console.log("Your line would be here")//Prints a line on the console
alert("Your message here")//Raises an alert
Example 4: html console text
<script>
console.log('%c text', 'background:---; color:---; font-size:---;');
</script>