Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



6 Javascript Neat Tricks That You Probably Did Not Know

Did you know that there are snippets of hidden JavaScript tricks to make your job easier? In this blog, we are going to discuss these 6 hidden JavaScript tricks. So without wasting any more time , let’s do it let’s get started.. 1. Shortening console.log:. Developers always like to save time, but writing console.log, again and again, sometimes it's tedious. But this next trick will show you how To minify your console.log file, see the code snippet below.. 2. Smart Functions:. Arrow functions are one of the functions introduced in ES6 JavaScript and are mainly used to implement short functions and to make the code cleaner and easier to read compared to regular functions. Below is sample code for using arrow functions.. 3. Short Conditions:. Instead of writing multiple lines of conditional code, you can write it in a single line. This hack shows you how to do it. This is useful when working in multiple conditions at the same time.. 4. Flat Multi-dimension Array:. This hack will help you flatten matrices in a way, see code snippet below.. 5. console.table:. This awesome trick will help you convert your data from CSV or dictionary format to spreadsheet format using the console.table() method. 6. Multiple Replace:. We know we can use the replace() method to replace words in a string, but what about multiple replaced words in the same string? This trick will help you do it with the replace() method by adding a /g keyword at the end. Look at the following code to understand it..

Comments