♦ Writing custom print function in JavaScript
♣ Example3: Writing custom print function in JavaScript
In this example, custom function name print is defined instead of the cumbersomely long method "document.write()".Also, println() is defined for printing with the break line.
Example
Input:
Output: