💡 Javascript💡

💡 Javascript💡

Start from the beginning...........

·

3 min read

Today I am gonna start a series where you can learn javascript from the beginning. we will cover all important topics of javascript.

History of javascript:-

Mosaic was the first web browser with a graphical user interface. It was first released in 1993 and played a key role in the rapid development of the web as we know it today. The lead developers of Mosaic founded Netscape (now Mozilla) and released a more elegant browser called Netscape Navigator in 1994

During the early years of the web, web pages were only static, with no capability for dynamic behavior and interactivity. As a result, there was an urge in the web development community at the time to eliminate this limitation. This led Netscape to the decision to add a scripting language to the Navigator browser.

In September 1995, a Netscape programmer named Brendan Eich developed a new scripting language in just 10 days. It was originally called Mocha, but quickly became known as LiveScript and, later, JavaScript

What is JavaScript?

JavaScript, which is abbreviated as JS, is a programming language that conforms to the ECMAScript specification.

It was initially created to make web pages alive. JavaScript is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. Using JavaScript, we can change and update both HTML and CSS.

Javascript is abstracting us away from how the computer and the browser works. This helped me how the tools are functioning and what’s happening under the hood in Javascript.

So mainly JavaScript is a programming language which helps us to make many things! But mostly we knew it for web development.

You can use JavaScript in everywhere now. Like – Web, mobile app, desktop app, robotics, machine learning etc sector.

JavaScript has no link with Java programming language. It is a fully independent language with its specification.

The Role of Javascript in web development:-

JavaScript's most popular use is for web development, and it is one of the most powerful tools a developer can have on their toolbelt. Developers use JavaScript in web development to add interactivity and features to improve the user experience and make the internet much more enjoyable.

  1. HTML (Hypertext Markup Language): This allows you to create the structure of the web page

  2. CSS (Cascading stylesheet): This is to make that web page look pretty 😊

  3. JavaScript: Allows you to do anything dynamic with the page including fetching data from a server or making the page interactive

What you can do by using javascript?

The core client-side JavaScript language consists of some common programming features that allow you to do things like:

Store useful values inside variables. In the above example, for instance, we ask for a new name to be entered then store that name in a variable called name.

How to add javascript code in HTML?

The code of JavaScript is written between <script> tags, but it is not necessary that ‘script tags‘ be written between ‘head tags‘ JavaScript code can be implemented anywhere on the web page to implement the code of JavaScript.

What is the type attribute used for:-

The ‘type’ attribute is commonly used in the script tag. What type of content is given here is written.

<script type="text/javascript">
     // Here we have to code JavaScript
</script>

Conclusion:-

This is a quick introduction to javascript and what we can do with javascript. I hope you find this article helpful.

Let's meet in the next article✋

Happy coding...................

Â