how to print html with javascript code example
Example 1: js how to print
console.log(text);
Example 2: how to code print in javascript
console.log("print")
//or
alert("Print")
console.log(text);
console.log("print")
//or
alert("Print")