Reference for How to Write an Open Source JavaScript Library
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
(1) Morphism - A fancy way of describing a set of values that maps to another set of values
(2) Function vs Procedure -Functions take input & return some ouptut; Procedures need not return
(3) Arity - Arity is the number of parameters in a function declaration.
(4) Unary Function - A function with arity of 1 is also referred to as a unary function.
[ | |
{ | |
"number": 1, | |
"name": "Hydrogen", | |
"symbol": "H", | |
"mass": 1.00794, | |
"type": "unknown" | |
}, | |
{ | |
"number": 2, |
var figure = document.querySelectorAll('.sw-media'); | |
for (let i of figure) { | |
console.log(JSON.stringify(i.children[0].src)); | |
} | |
var img = document.querySelectorAll('.sw-para>img'); | |
for (let i of img) { | |
console.log(JSON.stringify(i.src)); | |
} |
Some of the inspiring or well-written articles on developing Front-End Applications
[ | |
{ | |
"name":"Churchgate", | |
"state":"Mumbai", | |
"code":"C", | |
"price":5 | |
}, | |
{ | |
"name":"Marine Lines", | |
"state":"Mumbai", |
var sorting = document.querySelectorAll('td'); | |
var keywords = []; | |
sorting.forEach((keyword, i) => { | |
if((i - 1) % 8 === 0) keywords.push(keyword.innerHTML); | |
}); | |
console.log(JSON.stringify(keywords, null, 2)); |