Easy lazzy loading with default tag and polyfill
Easy lazy loading images with attribute loading="lazy". And polyfill for Safari or IE.
How to disable Download and PictureInPicture html video
To disable picture-in-picture for the video tag, write the property in the tag disablePictureInPicture. To disable download button write the property controlsList="nodownload"...
ES6 Lesson #12 - Destructive object assignment
In the last lesson, we looked at how to assign arrays destructively, in this I will tell you how to assign objects destructively.
ES6 Lesson #12 - Destructive array assignment
Now in ES6 there is the ability to quickly assign variable values to arrays.
ES6 Lesson #11 - Arrow Functions
Nevertheless, jаvascript remains a functional language, in this tutorial we will look innovations in es6 functions. Namely arrow functions
ES6 Lesson #10 - Function expression
Classes in es6 are functions, so we can declare them in several ways.
Google Maps Vue.js example
A simple code example on how to use google map in vue.js or nuxt.
ES6 Lesson #9 - Inheritance
In es6 classes, constructor inheritance from other classes is possible, as well as their properties and methods.
ES6 Lesson #8 - Classes and Methods
Prior to ES6, jаvascript did not support classes that everyone uses, in almost all programming languages. In this lesson we look and classes, methods, and constructors in ES6.
ES6 Lesson #7 - Objects
In es6 simplifications appeared when working with objects and methods. Let's look at some examples.
ES6 Lesson #6 - For of cycle
jаvascript has cycle "for in". Which in some cases had to be applied with an index, now there is another cycle for this - "for of".
ES6 Lesson #5 - Function parametres
There are a lot of interesting innovations in es6 for working with function parameters.
ES6 Lesson #4 - Template String
I think you often had a case when you need to connect a string with variables. With a template string, this will be much easier.
ES6 Lesson #3 - Spread operator
Spread operator is used to expand arrays.
ES6 Lesson #2 - Let and Const
ES6 Lesson 2. A simple example how to use const and let. And also why are they needed.
ES6 Lesson #1 - Babel
For starters, not all browsers understand es6 in 2020. In order to solve the problem, we need to install Babel, which will transform es6 into standard jаvascript.