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

TODO: What is imul()?

TODO: What is binding?

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

Why is "sun" > "ibm" ?

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

When to use super()?

Gist Code

What are Promises?

Gist Code

How to use async/await?

Gist Code

What does an async function always return?

Gist Code

What is try/catch?

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

What is Hoisting?

Gist Code

What is 'scope'?

Answer Scope is the area withing code in which a resource is available

Code

What is this?

Code

(19 Questions)