JavaScript
React
Best Practices
Popular
Post image

How to Greatly Enhance fetch() with the Decorator Pattern

How to use the decorator pattern to enhance the possibilities and flexibily of fetch() API.
Continue reading ➞
Post image

7 Interview Questions on JavaScript Closures. Can You Answer Them?

I compiled a list of 7 interesting and increasingly challenging questions on JavaScript closures. Can you answer them?
Continue reading ➞
Post image

What's a Method in JavaScript?

A method is a function that belongs to an object and executed with that object as a context.
Continue reading ➞
Post image

array.sort() Does Not Simply Sort Numbers in JavaScript

array.sort() method, when invoked without arguments, doesn't sort numbers as you might expect.
Continue reading ➞
Post image

How to Solve the Infinite Loop of React.useEffect()

Posted January 19, 2021
Be careful when using React.useEffect() hook because it can generate infinite loops.
Continue reading ➞
Post image

The New Array Method You'll Enjoy: array.at(index)

Posted January 12, 2021
array.at(index) method in JavaScript accesses array items at positive and (finally!) at negative indexes.
Continue reading ➞
Post image

What's the Difference between DOM Node and Element?

Posted January 5, 2021
What's the difference between a DOM node and an element? Let's find out!
Continue reading ➞
Post image

Why Promises Are Faster Than setTimeout()?

Why an immidiately resolved promise is faster then an immediate timeout?
Continue reading ➞
Post image

Everything About Callback Functions in JavaScript

Posted December 22, 2020
The callback is a function being called by another function, either synchronously or asynchronously.
Continue reading ➞
Post image

How React Updates State

Posted December 15, 2020
If you're updating the state of a React component, expect the state variable to receive the new value on the next rendering.
Continue reading ➞
prev1
[...]
456
[...]
16next