The following snippet shows how to write an abstract class and method. Goals The abstract class cannot be instantiated; The abstract method must be implemented. See example online at https://codesandbox.io/s/abstract-class-and-method-clvze Did you find it interesting? Follow
Continue ReadingTag: JavaScript
Value of the first object property
Get the value of the first object property using Object.values() and array destructuring. See example online at https://codesandbox.io/s/value-of-the-first-object-property-b7dvj Did you find it interesting? Follow me on Twitter.
Continue ReadingReturning undefined (JavaScript)
Because sometimes things aren’t so obvious – All these functions return undefined. See example online at https://codesandbox.io/s/returning-undefined-x6wxh Did you find it interesting? Follow me on Twitter.
Continue ReadingESLint config Cecilia
Acabei de lançar o meu contributo para uma configuração partilhável do ESLint que pode ser utilizado em aplicações desenvolvidas em JavaScript (Vanilla.js, React.js ou Node.js). Foi criado um pacote npm e um repositório no GitHub denominado ESLint config
Continue ReadingProgramação funcional com a função reduce() do JavaScript
Dentro do paradigma da programação funcional no JavaScript, o método reduce() é uma das funções fundamentais. Esta permite trabalhar com arrays podendo ser utilizada, por exemplo, para somar todos os elementos de um array, calcular
Continue ReadingLista de livros
Ler livros técnicos é um dos meus hobbies favoritos. Esta é a lista de livros de programação que já li. Este post é atualizado regularmente. Criação Rápida de Sites Responsivos com o Bootstrap (pt-PT
Continue Reading