Answers for "print on console js"

20

how to print to console javascript

console.log("string")
Posted by: Guest on February-13-2020
1

display console log in HTML

(function () {
    var old = console.log;
    var logger = document.getElementById('log');
    console.log = function (message) {
        if (typeof message == 'object') {
            logger.innerHTML += (JSON && JSON.stringify ? JSON.stringify(message) : message) + '<br />';
        } else {
            logger.innerHTML += message + '<br />';
        }
    }
})();
Posted by: Guest on August-18-2020
0

print stuff in console javascript

console.log("CONTENT YOU WANNA INSERT I CONSOLE HERE")
Posted by: Guest on May-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language