Using variable by JavaScript to display text in webpage

The output below is displayed by variable.If you see at the coding part at the nineth line in would hame writen var tin,
it means that we are programing that there is a variable called tin. At document.write we should type everything
in quots but not the variable as you can see in the tenth line that tin was not in quots and you should use the addition
symbol (+) or the output would not come right.


<html>
<head>

<title>Giving text to web page by variables
in JavaScript</title> </head> <body> <h1>Output</h1> <script language="JavaScript"> var tin="Matthew Benedict" document.write("My name is "+tin+"
<br>Hellow"); </script> </body> </html>

Output