get all console messages in javascript code example Example: how to print console in javascript console.log("message here")