JavaScript

Introduction

JavaScript Logo

JavaScript is a high-level, dynamic, untyped, and interpreted programming language. It has been standardized in the ECMAScript language specification. Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content production; the majority of websites employ it, and all modern Web browsers support it without the need for plug-ins. JavaScript is prototype-based with first-class functions, making it a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles. It has an API for working with text, arrays, dates and regular expressions, but does not include any I/O, such as networking, storage, or graphics facilities, relying for these upon the host environment in which it is embedded.

Internal JavaScript

<head> OR <body>
 <script>
  "Your script"
 </script>
</head> OR </body>

For example:
<head> OR <body>
 <script>
  document.getElementById("test").innerHTML = "This is Script.";
 </script>
</head> OR </body>

Result: This is Script.(This p tags id is test).

External JavaScript

<head>
 <script src="ScriptName.js"></script>
</head>

Create JavaScript File

Click on the image to see it in full size.

×

Start