JavaScript

Observer Design Pattern in JavaScript — step-by-step Javascript tutorial on Progressive Robot

Observer Design Pattern in JavaScript

There are many times when one part of the application changes, other parts needs to be updated. In AngularJS, if the $scope object updates, an event can be triggered to notify another component. The observer pattern incorporates just that – if an object is modified it broadcasts to…

Read more
Entendendo classes no JavaScript — step-by-step Javascript tutorial on Progressive Robot

Entendendo classes no JavaScript

O JavaScript é uma linguagem baseada em protótipo, e cada objeto no JavaScript tem uma propriedade interna escondida chamada [[Prototype]], que pode ser usada para estender as propriedades e métodos de objetos. Você pode ler mais sobre protótipos no nosso tutorial [Entendendo…

Read more
Understanding Map and Set Objects in JavaScript — step-by-step Javascript tutorial on Progressive Robot

Understanding Map and Set Objects in JavaScript

Introduced in ECMAScript 2015, Maps in JavaScript are ordered collections of key/value pairs, and Sets are collections of unique values. In this article, you will go over the Map and Set objects, what makes them similar or different to Objects and Arrays, the properties and methods available to them, and examples of some practical uses.

Read more
Usando buffers no Node.js — step-by-step Javascript tutorial on Progressive Robot

Usando buffers no Node.js

O autor selecionou a COVID-19 Relief Fund​​​​​ para receber uma doação como parte do programa Write for DOnations. Um buffer é um espaço de memória (tipicamente RAM)…

Read more
Como usar o .map() para realizar iterações em itens de matrizes em JavaScript — step-by-step Javascript tutorial on Progressive Robot

Como usar o .map() para realizar iterações em itens de matrizes em JavaScript

Um dos métodos mais populares para realizar iterações em conjuntos de dados em JavaScript é o método `.map()`. O `.map()` cria uma matriz depois de chamar uma função específica em cada item na matriz mãe. O `.map()` é um método de não mutação que cria uma nova matriz ao invés de alterar a original. Neste tutorial, vamos analisar quatro usos dignos de atenção do `.map()` em JavaScript: chamar uma função de elementos de matriz, converter strings em matrizes, renderizar listas em bibliotecas e refo

Read more
Getting Started with NestJS — step-by-step Javascript tutorial on Progressive Robot

Getting Started with NestJS

If you’ve worked on a Node.js application, you may have noticed that it became more difficult to maintain over time. The more you add new features to the application, the larger the codebase becomes. Nest.js is a server-side Node.js framework for…

Read more
CHAT