We know HTML is all about editing, CSS is all about designing, what’s left you ask?
In other words, JS is the programming language of the web, we used HTML and CSS to create and design a webpage, but at this point, the page is “static”,
JS allows us to “breathe life” in it, making the webpage more interactive, and with it, much more dynamic.
By embedding JS in a HTML document we open doors to much more possibilities, making objects take a living responsive form, now we can define that each object can have attributes and different methods (functions) he can perform.
There are to ways in which we can embed JS in a HTML document :
</script>tags, we can write it in the <head> or <body> sections of the HTML page, even in both if you want to!
src(the source) attribute of a
<script>tag, building the connection we need.
We can define different, versatile behaviors a webpage will enact, create actual living animations and so on…
We can use JS to develop browser games, we can use JS to build web servers and develop server applications, simply putting – want to work in anything related to the web? Learn JS.
Similar to other programming languages, we can use JS to :
- 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
- Operations on pieces of text (known as “strings” in programming), we can add labels, define String that will match a certain variable and so on.
There are even platforms that allows us to build web user interfaces via JS such as:
And there are many many more, just proving to us how popular and relevant the use of JS nowdays.
The possibilities are wide and vast, but, so are the ways it can harm us.
You can read more about Injection Attacks and other action movies villains on other articles found in this blog, because we in Kayran care about your safety and our tools will help you to avoid getting any unnecessary “Flu-Shots”.
Stay safe, choose Kayran.