<html> <body> <% print('Hi, <h3> Jaggery </h3>'); %> </body> </html>
In-built function print()
will write server-side output to the document.
print(str | obj)
Parameter | Type | Description |
---|---|---|
str | String | print("hello");print a String to the response |
obj | Object | var obj = {"name": "jaggery"}; print(obj); Passing a Javascript object to print() serialize the object to the response |