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!
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.
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
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.