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

JS Interview #35: What is faster, zero timeout or immediate resolve?

What鈥檚 the order of the output? . . . . . . . . . . . . . . . . . Both setTimeout and Promise.resolve are asynchronous actions, which means that the inner console....

February 7, 2021 路 1 min 路 Coderslang Master

How to disable ESLint for some lines, files or folders

ESLint - is a very convenient tool to control code quality. But, sometimes it鈥檚 necessary to disable it. In this tutorial, you鈥檒l learn how to turn off ESLint for certain directories and files....

February 6, 2021 路 2 min 路 Coderslang Master

4 ways to compare strings in JavaScript

In this short JS tutorial, you鈥檒l learn how to compare strings and see code examples. ...

February 5, 2021 路 2 min 路 Coderslang Master

JS Interview #34: Different ways to get current date in JavaScript

How do you prefer to get the current date in JS? What will be logged to the console? . . . . . . . . . . . ....

February 4, 2021 路 1 min 路 Coderslang Master

How to fix the error `require is not defined` in Node.js

Today I started writing a new project on Node.js and got this error on the very first run: const express = require('express'); ^ ReferenceError: require is not defined at ModuleJob.run (node:internal/modules/esm/module_job:152:23) at async Loader....

February 2, 2021 路 2 min 路 Coderslang Master

JS Interview #33: Add two empty arrays and check the type

Array? Object? Undefined? What鈥檚 the output? . . . . . . . . . . . . . . . . . . In JavaScript, the + operator doesn鈥檛 do the concatenation of arrays....

February 1, 2021 路 1 min 路 Coderslang Master

How to solve JavaScript tasks in a professional IDE with hints

To become a programmer, you need to code. And not on your smartphone or browser, but in a professional Interactive Development Environment (IDE). One of the best features of CoderslangJS - is practical tasks with automatic verification....

January 31, 2021 路 2 min 路 Coderslang Master

JS Interview #32: 0.1 + 0.1 + 0.1 === 0.3

What will be logged to the console? . . . . . . . . . . . . . . . . . . At a first glance, the answer is true as 0....

January 29, 2021 路 1 min 路 Coderslang Master

How to detect the user browser with JavaScript

You can check which browser the user is running using plain JavaScript. ...

January 28, 2021 路 1 min 路 Coderslang Master

JS Interview #31: Big or small

What鈥檚 the output? . . . . . . . . . . . . . . . . . . So, there鈥檚 an if statement and it鈥檚 condition Math.max() > 0 is all we need to analyze....

January 26, 2021 路 1 min 路 Coderslang Master