You’re in the right place! In this introduction guide I’ll answer common questions like:
- What can you do with JS?
All websites ar built with HTML (a markup language that handles the content on a web page) and CSS (a language to handle the styling of the content).
HTML allows web developers to create all the content and information using HTML tags and providing semantics to the information. The CSS allows you to give some style to the page and build a more pleasant visual interface for the user.
The well-defined separation of these two elements allows you to modify one aspect of the page (the information or the design) without affecting the other.
However, using only and exclusively HTML and CSS on a page limits us considerably.
While it’s true that with these two languages we can do a wide range of things, there are others more complex tasks on a website that we can only do with a proper programming language…
JS is the primary programming language in charge of providing more interactivity and dynamism to web pages.
These connections between users and web pages were too slow, and when a user wanted to send information to the server, if it was incorrect, it took a while to know and the data was lost.
The programmer Brendan Eich started placing server tasks in the browser in a new version of Netscape Navigator in 1995. This task became more and more ambitious and was called LiveScript.
Year after year, the language has received modifications and improvements, reaching our era as we actually know it.
As example: let’s imagine that we’ve to create a list of numbers from 1 to 500. To do it only with HTML would be very tedious, since we would have to copy and paste these rows several times until we reach 500.
Can you see it?
There is also a technology called AJAX that allows an exchange of information with the server without having to reload the page.
“Crawl before you walk, walk before you run, and run, run and run before you can fly…”
freecodeCamp: Looking for free resources? This is your place — and with certifications.
Pluralsight: Pluralsight offers some interesting online courses ideal for beginners.
Coursera: Lots of free and paid courses.