This repository coantains the different concepts of JavaScript and ECMA Script 6 which I've learnt while learning JS.
- JavaScript (JS) is a lightweight interpreted (or just-in-time compiled) programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
- JavaScript's dynamic capabilities include runtime object construction, variable parameter lists, function variables, dynamic script creation (via eval ), object introspection (via for...in and Object utilities), and source-code recovery (JavaScript functions store their source text and can be retrieved through toString( )).
- All popular web browsers support JavaScript as they provide built-in execution environments.
- JavaScript follows the syntax and structure of the C programming language. Thus, it is a structured programming language.
- JavaScript is a weakly typed language, where certain types are implicitly cast (depending on the operation).
- JavaScript is an object-oriented programming language that uses prototypes rather than using classes for inheritance.
- It is a light-weighted and interpreted language.
- It is a case-sensitive language.
- JavaScript is supportable in several operating systems including Windows, macOS, etc.
- It provides good control to the users over the web browsers.
JavaScript is used to create interactive websites.
It is mainly used for :
- Client-side validation.
- Dynamic drop-down menus.
- Displaying date and time.
- Displaying pop-up windows and dialog boxes (like an alert dialog box, confirm dialog box and prompt dialog box).
- Displaying clocks etc.
ES6 stands for ECMAScript 6, which is a scripting language specification that was standardized by ECMAScript International in 2015. It is also known as ECMAScript 2015. ES6 is used by applications to enable client-side scripting, such as JavaScript, ActionScript, and JScript3. ES6 introduced many new features and syntax improvements to the language, such as :
- let and const keywords for declaring variables with block scope.
- Arrow functions for writing concise function expressions.
- Default parameter values for functions.
- The spread operator (...) for expanding iterables into more elements or arguments.
- The for/of loop for iterating over the values of an iterable object.
- Map and Set objects for storing collections of key-value pairs and unique values.
- Classes for defining object-oriented structures with inheritance and methods.
- Promises for handling asynchronous operations.
- Symbols for creating unique identifiers for object properties.
- Modules for organizing code into separate files and namespaces.