JavaScript

Ways to Create Objects in JavaScript

Ways to Create Objects in JavaScript

04.08.19
There are several ways to create objects in JavaScript. The Object data type plays a critical role in JS. An object is an unordered set of key-value pairs. May contain other objects 1. Literal notation var someObje...
Promise in JavaScript

Promise in JavaScript

06.07.19
JavaScript promises function doSomething(data){ return new Promise(function(resolve, reject){ if(data) resolve('success'); reject('fail'); alert('test'); ...
Package frontend-skeleton

Package frontend-skeleton

29.06.19
This package is configured to develop a frontend on sass (scss), typescript and pug. All done with gulp and webpack. Installation With Git git clone https://github.com/igorrybalko/frontend-skeleton.git With NPM...
Typical gulpfile.js

Typical gulpfile.js

26.05.19
The file is written for Gulp 4. The file is designed to work with styles (SCSS) and JavaScript. All minify and compile sourcemaps for debugging. Third-party scripts and styles are in separate files. const production =...
JavaScript Inheritance and Classes

JavaScript Inheritance and Classes

12.05.19
In many programming languages implemented inheritance. And it also exists in JavaScript. First, consider prototype inheritance. We describe the function constructor function Animal(name, weight, color){ this....
[12 3 4  >>