Javascript | What is JS?
Javascript is a client-side scripting language that allows us to implement complex things on a web page. or we can say Javascript is a scripting language that allows programmers to do complex problems in a simple and efficient manner. Using javascript framework programmers can implement a more attractive and efficient web-pages.[Javascript is a high level platform-independent, object-oriented, client-side scripting language used to develop interactive web pages.]
History:
In September 1995, a Netscape programmer named Brandan Eich developed a new scripting language in just 10 days. It was originally named Mocha, but quickly became known as LiveScript and, later, JavaScript.Javascript Frameworks:
JQueryAngularJs
ReactJs
Meteor
NodeJs
Top websites using JS:
- Amazon
- Netflix
- YouTube
- eBay
- PayPal
Benefits of JS:
- Speed
- Easy to Learn
- Interactive Websites
- No Compilation needed
- Platform-independent
Two way to add JS to your HTML code:
1. Using script tag (<script>):
<html>
<body>
<h1>
First JS Code
</h1>
<p>Learn more</p>
<script>
console.log("Hello");
</script>
</body>
</html>
2. Using external .JS FIle:
<html>
<body>
<h1>
First JS Code
</h1>
<p>Learn more</p>
<script src="Hello.js">
</script>
</body>0
</html>
Hello.jsconsole.log("Second way ");
Comments
Post a Comment
If you have any query, please let us know