JavaScript Interview Question #44: Number vs BigInt in JS

What happens if we add an n suffix to a regular number in JavaScript? What’s the output? . . . . . . . . . . . . ....

March 6, 2021 · 1 min · Coderslang Master

JavaScript, synchronizing Promises with async/await

Promises are a very handy tool for organizing asynchronous code. But the human brain is much more accustomed to synchronous operations. We’d much rather prefer to do something, wait, and then continue instead of having to handle inherent complexity of asynchronous programming....

March 6, 2021 · 2 min · Coderslang Master

JSON Tutorial for JavaScript and Node.js

{“id”: 105, “previousLectureId”: 104, “nextLectureId”: 106, “lang”: “en”, “price”: 10, “jsQuestId”: 2, “tutors”: [“Technic”]} One of the most popular formats for exchanging data between backend and frontend is JSON which stands for JavaScript Object Notation....

March 5, 2021 · 4 min · Coderslang Master

Node.js, Express Middleware and External Access

Great, we already have a production server and have done some tasks to better understand how it works. Now let’s take a look at middleware - one of the most important concepts of Express....

March 4, 2021 · 4 min · Coderslang Master

Create your first Node.js server with Express backend

In the last lecture, you saw the server-side analogy of the Hello, world that you wrote as your first task in VSCode. Our program was able to process the request and return a response, which was displayed by the browser....

March 3, 2021 · 3 min · Coderslang Master

JavaScript Interview Question #43: Object.toString and Array.toString

What’s the difference between Object.toString and Array.toString in JavaScript? What’s the output? . . . . . . . . . . . . . . . . . A regular behavior of the JavaScript function Object....

March 3, 2021 · 1 min · Coderslang Master

JavaScript Interview Question #42: How Math.max works in JS

How exactly Math.max works in JavaScript? What’s the output? . . . . . . . . . . . . . . . . . In JavaScript, the function Math....

February 28, 2021 · 1 min · Coderslang Master

JavaScript Interview Question #41: Increasing MAX_SAFE_INTEGER

True or false? What appears in the console? . . . . . . . . . . . . . . . . . JavaScript uses the double precision floating point numbers even to represent integers....

February 25, 2021 · 1 min · Coderslang Master

JS Interview #40: What is the type of `undefined` in JS?

What’s the output? . . . . . . . . . . . . . . . . . In JavaScript, the typeof operator always returns a string. So, even though typeof undefined evaluates to undefined, it’s a string and not the primitive undefined value....

February 22, 2021 · 1 min · Coderslang Master

JS Interview #39: How does `setTimeout` work inside the `for` loop?

What will be logged to the console? . . . . . . . . . . . . . . . . . Before we analyze the code snippet, let’s try to simplify it by removing the setTimeout....

February 19, 2021 · 1 min · Coderslang Master