馃殌 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 馃挭

JS Interview #12: Math.min()

How small is Math.min() in JavaScript? . . . . . . . . . . . . . . . . . . The function Math.min() takes the variable number of arguments and returns the lowest number passed into it....

November 30, 2020 路 1 min 路 Coderslang Master

Top 3 Reasons Why You Should Never Cheat When Learning to Code

There are many reasons why you should never cheat while learning programming. Cheating can lead to frustration, decreased motivation, and even failure. Wasted effort When you cheat, you are not really learning the material....

November 8, 2022 路 3 min 路 Coderslang Master

How to do bit manipulation in JavaScript

Bitwise operations aren鈥檛 very common in JavaScript, but sometimes they鈥檙e indispensable. ...

November 28, 2020 路 4 min 路 Coderslang Master

JS Interview #11: Scope

Variables with the same name in JavaScript? What will be logged to the console? . . . . . . . . . . . . . . . ....

November 27, 2020 路 1 min 路 Coderslang Master

JS Interview #10: null + undefined

What's the difference between `null` and `undefined` in JavaScript? What will be logged to the console? (think well, then click for the answer and explanation) In the first line, we evaluate null === null and the result is true....

November 24, 2020 路 1 min 路 Coderslang Master

JS Interview #9: Promise.reject + try/catch

Let's try to reject the promise inside of the JS `try/catch`. Will we catch the error in the `catch` block? (think well, then click for the answer and explanation) Regular try/catch blocks only catch errors that appear in the synchronous code....

November 21, 2020 路 1 min 路 Coderslang Master

Are you a SOLID developer

SOLID is an acronym for 5 object-oriented design principles formulated by Robert Martin - @unclebobmartin. Following SOLID principles will help you build maintainable and extensible software. ...

November 20, 2020 路 2 min 路 Coderslang Master

How to import and use npm modules

Open source Node modules are very powerful as you can instantly get access to the functionality that you鈥檇 otherwise have to write yourself. Learn how to import the module once you鈥檝e installed it. ...

November 19, 2020 路 2 min 路 Coderslang Master

How to find and install open-source npm packages

Node package manager or npm was first released in 2010. In 2020, it includes around 500k open-source modules to enhance the functionality of your Node.js applications. ...

November 18, 2020 路 2 min 路 Coderslang Master

JS Interview #8: Zero timeout

What if we call `setTimeout` with 0 delay in JavaScript? Which of the messages will be printed first? (think well, then click for the answer and explanation) In JS, `setTimeout(func, delay)` takes a function `func` and delays its execution by `delay` milliseconds....

November 18, 2020 路 1 min 路 Coderslang Master