Hello World: JavaScript

JavaScript is useful to improve the layout of an HTML page giving the programmers to create a page of choice based on various parameters (dyanamically). A simple javascript function will look like

<title>Hello World in JavaScript</title>
<script type="text/javascript">
document.write("Hello World!");

Now open your browser and enter the path where you have stored this file


and the output will be displayed in the browser

Hello World!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s