Like I posted earlier, I will be jotting down my progress on my javascript journey here. So today, I will be writing about what is javascript, why is javascript important and how it can be used in your web applications.
Before you learn javascript, I believe you must have had the basic knowledge of what HTML and CSS are because we'll be making use of them as we progress.
What is Javascript? Javascript is a lightweight, interpreted programming language that is javascript runs instantly on your browser. It is the third layer of standard web technologies(HTML, CSS, JS) and also javascript is called Scripts.
Note: Javascript files end with.js an extension
Why is Javascript important?
It is dynamic and helps to add interactivity to our web pages.
It runs codes in response to certain events that is when you want to submit a form
It has powerful APIs(Application Programming Interface), hence access to numerous complex features. etc
There are two methods by which you can use javascript on your web page
Internal Javascript: It means writing your javascript file directly in your HTML file but it is not recommended.
External Javascript: It means separating your javascript file from your HTML file and you must reference your javascript file in your HTML file using the script tag.
For example <script src="index.js"></script>
You can drop your comments if you learnt something from this. To be continued...