Day 1 ECMAScript - Thomheerens/js-bootcampThom GitHub Wiki
JavaScript is a scripting or programming language that allows you to implement complex features on web pages — every time a web page does more than just sit there and display static information for you to look at — displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc. — you can bet that JavaScript is probably involved. It is the third layer of the layer cake of standard web technologies, two of which (HTML and CSS) we have covered in much more detail in other parts of the Learning Area.
TC39 is een committee die JavaScript ontwikkeld.
De members van TC39 zijn bedrijven die veel invloed hebben op de JavaScript. Zoals Google, Facebook, Apple en andere.
Dit zijn de inevitable terms voor JavaScript:
ES3
ES5
ES6
ES7
ES8
ES2015
ES2016
ES2017
ECMAScript 2015
ECMAScript 2016
ECMAScript 2017
ECMAScript 2018
ECMAScript 2019
Dit zijn alle termen die refereren naar een standard, dat heet ECMAScript (ES).
At first there were only numbers, like 0s and 1s. But it is much easier to mark it down with words.
For example, this was the code with numbers:
00110001 00000000 00000000
00110001 00000001 00000001
00110011 00000001 00000010
01010001 00001011 00000010
00100010 00000010 00001000
01000011 00000001 00000000
01000001 00000001 00000001
00010000 00000010 00000000
01100010 00000000 00000000
When you add more words to it, it is gonna look like this:
Set “total” to 0.
Set “count” to 1.
[loop]
Set “compare” to “count”.
Subtract 11 from “compare”.
If “compare” is zero, continue at [end].
Add “count” to “total”.
Add 1 to “count”.
Continue at [loop].
[end]
Output “total”.
And eventually you want to translate it to JavaScript code to work:
let total = 0, count = 1;
while (count <= 10) {
total += count;
count += 1;
}
console.log(total);
// → 55
You can see that much complicated code, is in real life much easier then it looks.