#javascript

Master Binary in Five Minutes

#webdev , #javascript , #beginners , #tutorial

Binary is the very core of everything digital, not only in web development, but literally everything: from variables and file data to transport protocols and executables themselves.

[read more]

Five Pro Tips to Master Promises in Js

#javascript , #node , #tutorial , #beginners

Events handling and promises in particular are hands down the best JavaScript feature. You’re probably familiar with the concept itself, but in short, a Promise in JavaScript is a promise to call back with the result.

[read more]

How to Use Custom Files as Modules in Nodejs

#javascript , #node , #webdev , #tutorial

There are quite a few cases where you can benefit from importing an arbitrary file directly: in universal apps, tests, or simply to avoid boilerplate. Good news: you don’t need Babel, Webpack, or anything else for it.

For this tutorial, we’ll make a server that will render a static HTML page with CSS styles, loaded as modules.

[read more]

How to Do Magic With Numbers

#javascript , #node , #webdev , #tutorial

JavaScript Number type would have been called double or float64 in a compiled language. Therefore, numbers have some limits

[read more]