Ashok M
What is JavaScript ..?
Javascript is the both scripting as well as programming language
Brendan Eich while he was working at Netscape company .Mocha," later renamed to "LiveScript," and finally became "JavaScript.”September 1995 as part of Netscape Navigator 2.01996, Netscape submitted JavaScript to the European Computer Manufacturers Association (ECMA) for standardization. This led to the creation of the ECMAScript specification.ES6**ECMAScript 2024 (ES15)**Ways to apply javascript or methods to write javascript :
<script> tags.Example :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Internal JavaScript Example</title>
</head>
<body>
<button onclick="showMessage()">Click Me</button>
<script>
function showMessage() {
alert("Hello from internal JavaScript!");
}
</script>
</body>
</html>
2. External way :
.js extension. This file is then linked to the HTML document using the <script> tag with the src attribute.Example :