Please enable JavaScript.
Coggle requires JavaScript to display documents.
Javascript - Coggle Diagram
Javascript
Functions
Spread operator (...args)
Implicit array : arguments
Type
Anonymous (callback)
Methods on arrays: ()=> tab.some(v => v==0)
Function as an argument
Currying
Closure
Arrow func
Named
This : depends on how to call
Func.call(obj,...args)
Func.apply(obj,array)
Binding to an object
Pipeline :check:
IIFE : immed invokd func exp
Own scope
Free variable
Variables
Declaring : var const let
Falsy
Undefined/null
False
0 NaN
""
Undefined
Refers to undeclared/non initialised var
Null
Var referencing unavailable obj
Symbol
Unique tokens
Dynamics
let o = {
Name :
}
D3.js
Data join
Data/graph correspondance
data()
enter().append()
exit().remove()
Why
Reusability
Calculations
Selections
Select()
SelectAll()
append()
html()
attr()
Style("prop","val")
classed()
Svg
d3.select(body).append(svg).attr(height/width)
How to use
Inline code
Noscript : for non js support
External file
Maintainability
Caching
Readability
Arrays
Methods
Push pop shift unshift concat
Splice : insert at any i
Slice fill reverse sort
Callback use