All The Questions I've Ever Asked Myself (About JavaScript)
"If you can't explain it simply, you don't understand it well enough".
-Albert Einstein
Code
TODO: How does reduce work?
Code
Which operator can be unary and binary at the samew time?
Answer
The 'Minus'- operator can be both: - ( 5 - 6 ). Unary operator expect a signle argument, binary ones expect two.
Code
Answer
Because the sum of it's characters char codes is higher.
Code
What are functions besides function?
Answer
Functions are also values, so they can be provided to functions as well.
Code
Gist
Code
Gist
Code
Gist
Code
What does an async function always return?
Gist
Code
Code
Why is ['a','b','c'] not equal to ['a','b','c']?
Code
What is the regex shorthand to find all alphanumerical characters within a string?
Code
What is the difference between slice and splice?
Code
What is a curried function?
Code
What are Immediately Invoked Function Expressions (IIFE)?
Code
What is the difference between for(const x in y) and for(const a of b) ?
Code
How can you actually fuck up a simple switch statement ('Tomato Is A Fruit Is Not A Fruit')?
Code
Gist
Code
Answer
Scope is the area withing code in which a resource is available
Code
Code