Script Header

✦ Java Script Introduction ✦

JavaScript was invented by Brendan Eich in 1995 and JavaScript code first ran in the Netscape browser. In 1996, JavaScript was introduced into the ECMA international standards organization and a technical committee (TC39) was formed to develop it. The standards for JavaScript are set by the ECMA organization and its official name is ECMA Script. The abbreviation of all versions of JavaScript starts with ES, like ES1, ES2, ES3 etc. The latest version of ECMA Script, version ES6, was launched in 2018.

JavaScript is one of the 3 main programming languages ​​needed to create a website. Java Script is also a client side scripting language like HTML or CSS. This language is coded according to user behavior and incorporated into the website in which many functions are stored together. Like CSS language, Java Script can also be included in the webpage file in two ways, one is internal script Code and other is external script code file.

Internal JavaScript code is used in two ways in any webpage. First way, JavaScript functions can be used in any HTML element with the help of attributes and second, by using script tag we can write script code inside it. Additionally, JavaScript code executed in a webpage can be written in a separate JavaScript file, called an external JavaScript file. External JavaScript files are linked to the webpage they belong to.

✤ Simple Java Script Example ✤
<!DOCTYPE html>
<html>
<head>
<title>Web Page Title</title>
</head>
<body>

<script type="text/javascript">
document.write("This is a Java Script");
</script>

</body>
</html>

The document.write() function in JavaScript is used to write something in an HTML document. With the help of the above example, we have tried to write the line "This is a Java Script" in an HTML document, the result of which you can see below. You can also practice this example.

✩ Result of above code ✩
This is a Java Script

✦ Detailed Discussion ✦

Script tag is used to write JavaScript code in HTML document, which means that the code written inside this tag is of JavaScript language. There are many functions in Java Script, out of which document.write() is also a function with the help of which some words can be written in the HTML document. Also, stay connected to Orexn World to study all the functions of JavaScript and learn this language in depth.

X Help by donating Donet
Dark Mode Donet