ποΈ Introduction
Core Characteristics of JavaScript
ποΈ ECMAScript
It is the standard that defines JavaScript, providing guidelines for its implementation and the syntax that modern JavaScript adheres to. It is the specification of scripting language which set rules.
ποΈ DRY vs WET
DRY (Donβt Repeat Yourself)
ποΈ Browser vs NodeJS
JavaScript in the Browser
ποΈ Browser Storage
| Feature | localStorage | sessionStorage | cookies |
ποΈ Data Types
Primitive Data Types
ποΈ Variables
Variable Environments
ποΈ Modules
Modules are a way to organize and structure code in a more modular and maintainable way. JavaScript modules allow you to split your code into multiple files and then import/export functionality between them.
ποΈ Currying
Currying is a technique of transforming a function that takes multiple arguments into a sequence of functions, each taking a single argument and returning another function (until all arguments have been provided).
ποΈ Composition
Function Composition is the process of combining multiple functions together so that the output of one function becomes the input of the next.
ποΈ Hoisting
It's a mechanism where variables and function declarations are moved to the top of their containing scope during the compile phase, before the code is executed. This means that you can use functions and variables before they are declared in the code.
ποΈ Temporal Dead Zone
Variables declared with var are hoisted at the top of their function scope. It means they are initialized with undefined even before the code execution reaches the declaration.
ποΈ Scope
A variable declared with var can be access outside it's block scope (not global scope) but not outside of functions local scope.
ποΈ Closure
A closure is a feature in JavaScript (and many other programming languages) where an inner function "remembers" the variables and scope of its outer function, even after the outer function has finished executing.
ποΈ Expression and Statement
In JavaScript:
ποΈ Pure Function
A pure function is a function that always:
ποΈ First Class Function
- Function can be used as value like storing in variable, passing as arguments, returning as value.
ποΈ Arrow Function
Features of Arrow Function
ποΈ IIFE
Immediatley Invoked Function Expression is a function that runs as soon as it is defined.
ποΈ this Keyword
this is a special keyword that refers to the object that is currently executing the code.
ποΈ Browser Execution
7 items