mainlogo2

What is JavaScript

JavaScript or JS is a dynamic coding language which main usage is on the clientside of webpages. It is used to update webpages in realtime, seemlessly, like changing a sites background color with the press of a button, receiving data from webforms or creating games, like 2048. Here I have some examples on how javascript can be used!

What is a programming language?

A Programming language is a way for us to write instructions to computers. Traditionally one would think coding is just 0:s and 1:s, like The Matrix or movies where the alleged "hacker" quickly types in a bunch of 1:s and 0:s on a keyboard and magically gets in to the Pentagons secure files. Now, that isnt how it works but there is a tiny bit of truth behind it. Programming is technically just 1:s and 0:s which is called "binary" and it has been used when computer programming started but nowadays a programming lanugage allows us to seemlessly translate those 1:s and 0:s into text and letters.
Programming is split into "Low level" and "High level". Low level is binary and things harder for humans to understand and High level is a language that humans can comprehend.

What is an algorithm

An algorithm is a sequence that describes a set of actions you program a computer to perform. A algorithm can be split in to two parts: Input and output. The input is what you as a programmer write for the computer to then pick up. Output is what the computer spits out after performing the inputs, the result so to say. For example typing the input "document.write('Hello World');" in JavaScript will give the output: Hello World

What is DOM and how does it correlate to JS?

DOM: or Document Object Model is a data representation of what makes up a webpage. It takes the roll of representation of a document so that other programs can modify it. Think of it like this: When writing HTML you write things vertically, html > head > body > h1 etc. You cant write head before html nor can you write body, alot of the tags in HTML code has to go in a certain order or the code wont work. DOM in a way "sorts" the HTML code and divides it up into a tree like structure similar to a prime number tree.

Facts about JS

JavaScript was released on the 5th of december 1995 and was created by Brendan Eich for Netscape 2. Currently there are 15* (if not counting the latest pending 16th version) editions of JavaScript. The latest version is called ECMAScript 2024 or just ES2024. Just like HTML and CSS documents ending in .html and .css respectivly JavaScript doucments end in .js