display console log result of object in html output code example
Example 1: javascript print
document.write("Hello world");
Example 2: html console text
<script>
console.log('%c text', 'background:---; color:---; font-size:---;');
</script>
document.write("Hello world");
<script>
console.log('%c text', 'background:---; color:---; font-size:---;');
</script>