What is Javascript?

JavaScript is a dynamic computer programming language used to make web pages interactive. Its interpreter is embedded in web browser software, such as IE, Chrome, and Firefox, etc. It runs on the visitor’s computer and browser.

The syntax of JavaScript looks like this:

Example

<html>

<head>

<title>Hello World</title>

</head>

<body>

<script language="javascript">

alert("Hello World!");

</script>

</body>

</html>

Output

Hello World!

Explanation

<script > is a tag for JavaScript. The JavaScript codes are included within it. “alert” pops up an alert box displaying a message.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy