Fork me on GitHub Fork me on GitHub

print()


<html>
<body>
<%
   print('Hi, <h3> Jaggery </h3>');
%>
</body>
</html>

Overview

In-built function print() will write server-side output to the document.

print(str | obj)


Parameters

Parameter Type Description
strString
print("hello");
print a String to the response
objObject
var obj = {"name": "jaggery"};
print(obj); 

Passing a Javascript object to print() serialize the object to the response