After Node came it is used for Web and mobile App, Real time Networking Application like real chat, etc.
<script> // write code </script>
Write the code into the script tag
It will show on the browser page.
Add two numeric value
<script> document.write(2+2); </script>
Add two string
<script> document.write("Welcome"+" John"); </script>