JavaScript
JavaScript Basics
What is JavaScript
•JavaScript is a lightweight, cross-platform, object-oriented computer programming language
• JavaScript is one of the three core technologies of web development
• Today, JavaScript can be used in different places: [-Client-side: JavaScript was traditionally only used in the browser. Server-side: Thanks to node.js, we can use JavaScript on the server as well-]
• JavaScript is what made modern web development possible: [-Dynamic effects and interactivity. Modern web applications that we can interact with-]
Frameworks/libraries like React and Angular are 100% based on JavaScript: you need to master JavaScript in order to use them!
• JavaScript versions: ES5 → ES6/ES2015 →ES7/ES2016 →ES8/ES2017
Get Abdullah Al Mamun’s stories in your inbox
Join Medium for free to get updates from this writer.
https://gitlab.com/mamun69/complete-javascript/tree/01-js-basics
JavaScript Primitive Data Type
1. Number: Floating point numbers, for decimals and integers
2. String: Sequence of characters, used for text
3. Boolean: Logical data type that can only be true or false
4. Undefined: Data type of a variable that does not have a value yet
5. Null: Also means ‘non-existent’
JavaScript has dynamic typing: data types are automatically assigned to variables
A Short History of JavaScript
•1996: Changed from LiveScript to JavaScript to attract Java developers. JavaScript has almost nothing to do with Java
•1997: ES1 (ECMAScript 1) became the first version of the JavaScript language standard:
• ECMAScript: The language standard;
• JavaScript: The language in practice.
• 2009: ES5 (ECMAScript 5) was released with lots of new features.
• 2015: ES6/ES2015 (ECMAScript 2015) was released, the biggest update to the language ever!
• 2015: Changed to an annual release cycle
• 2016/2017/2018/2019/..: Release of ES2016/ES2017/ES2018/ES2019/..
JavaScript Today: Which Version?
ES5 →Fully supported in all browser. Ready to used today.
ES6-ES7-ES8 →well supported in all modern browsers. Can use most features in production with transpiling and polyfilling (converting to ES5).
ES9-ES10 →Future versions, together called ESNext. Some features supported in modern browsers. Can already use some features in production with transpiling and polyfilling.








