hello.js

var please = require('share');
console.log('thank you');

NEW !!!

Monday, 6 July, 2020 UTC

javascript: 3 formas de actualizar un arreglo de objetos en JavaScript

Javascript ofrece diferentes formas de manipular un arreglo. Una de estas manipulaciones es la necesidad de modificar el contenido de uno de los items de un arreglo, para ello podemos hacer uso de métodos mutables, como utilizar acceso por indice o método ... more


Monday, 6 July, 2020 UTC

javascript: 4 Ways to populate an Array in Javacript

Javascript offers at least 4 ways to fill an array with different values using only native language methods. These methods allow you to create an arrangement of a predefined size and content. It's possible to use `Array.fill` to create an Array with a ... more


Monday, 6 July, 2020 UTC

javascript: 3 Ways to Update the Content of an Array of Objects with Javascript

Javascript offers different ways to manipulate an array. One of this situations is the need of update or modify the content of one of the items of an array of objects. To do this we can use mutable methods like index access or immutable ways by using ... more


Monday, 6 July, 2020 UTC

javascript: 4 formas de llenar un arreglo en Javascript

Javascript ofrece a lo menos 4 formas de completar un arreglo con diferentes valores utilizando solo métodos nativos del lenguaje. Estos métodos permiten crear un arreglo de un tamaño y contenido predefinido. Es posible utilizar `Array.fill` para crear ... more


Monday, 29 June, 2020 UTC

javascript: Encadenamiento Opcional en JavaScript

Cómo utilizar encadenamiento opcional para acceder a propiedades opcionales de objetos evitando el uso de multiples condicionales. ... more


Monday, 29 June, 2020 UTC

javascript: Operador Fusión Nula/Nullish Coalescing en Javascript

ES2020 también incluye un nuevo operador que puede ser utilizado de forma nativa en el navegador. Este operador, llamado fusión nula en español, permite seleccionar el primer valor no null o no undefined de una lista de variables. Actualmente, utilizamos ... more


Friday, 26 June, 2020 UTC

javascript: Build lodash.omitBy and lodash.pickBy with Object.fromEntries

`_.omitBy` and its sibling `_.pickBy` are popular utilities which apply filter-like functionality to objects. Both of them accept a function to determine if a given entry in the object should be included in the output object. This lesson will demonstrate ... more


Tuesday, 23 June, 2020 UTC

egghead: Build lodash.omit from Scratch with forEach and for...in

`_.omit` and its sibling `_.pick` are popular utilities which apply filter-like functionality to objects. This lesson will demonstrate two techniques for building the functionality found in [_.omit](https://lodash.com/docs/4.17.15#omit). - Cloning the ... more


Monday, 22 June, 2020 UTC

javascript: Build lodash.pick from Scratch

`_.pick` and its sibling `_.omit` are popular utilities which apply filter-like functionality to objects. This lesson will demonstrate two different techniques for building the functionality found in [_.pick](https://lodash.com/docs/4.17.15#pick). 1. ... more


Saturday, 20 June, 2020 UTC

egghead: Build lodash.throttle from Scratch

This lesson will demonstrate how to recreate a simplified version of the popular [lodash.throttle](https://lodash.com/docs/4.17.15#throttle) method from scratch. Throttle is used to limit the number of times a function is called within a given period ... more


Thursday, 18 June, 2020 UTC

github: Add npm Packages to a Custom Github Action to Use Open Source Libraries

In this lesson, you'll learn how to use npm packages to add functionality to your custom Github Action. We'll walk through installing the npm package Axios, using it to fetch a quote from a Futurama Character API, compiling our action to a single file, ... more


Monday, 15 June, 2020 UTC

javascript: Importar módulos de JavaScript de forma dinámica en el navegador

La nueva versión de Javascript trae, entre sus nuevas características la posibilidad de utilizar importación dinámica de forma nativa en el navegador utilizando la misma sintaxis que ya hemos utilizado con webpack/rollup y Babel. Se trata de la implementación ... more


Thursday, 11 June, 2020 UTC

github: Test a New Github Action in Its Repository with a Custom Workflow

In this lesson, you'll learn how to test a new Github Action within its own repository using a custom NodeJS workflow. We'll walk through setting up a new workflow using Github Actions and configure the workflow to run using the code from the repository. ... more


Thursday, 11 June, 2020 UTC

github: Create a New Github Action That Logs Hello World with Javascript and NodeJS

In this lesson, you'll learn how to create a brand new Github Action from scratch using Javascript. Running on Nodejs, we'll create a new script that logs "Hello, world!", configure the Action registration information, and initialize it as an ... more


Thursday, 11 June, 2020 UTC

github: Use npm to Tag and Version a Github Action Package for Workflow Version Control

In this lesson, you'll learn how to use the version tool from npm to increment the version of your new Github Action. We'll walk through setting up a convenience npm script and using it to both update the package's version in package.json and adding a ... more


Wednesday, 10 June, 2020 UTC

javascript: Replace lodash.get with Optional Chaining Syntax

This lesson will demonstrate how to replace common uses of [lodash.get](https://lodash.com/docs/4.17.15#get) with [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) syntax. `_.get` is by ... more


Wednesday, 10 June, 2020 UTC

javascript: Extending debounce with a maxWait Option

This lessons builds on [Build lodash.debounce from scratch](https://egghead.io/lessons/javascript-build-lodash-debounce-from-scratch) to add support for one of its more interesting options: `maxWait`. The `maxWait` option ensures that a debounced method ... more


Saturday, 6 June, 2020 UTC

javascript: Build lodash.debounce from Scratch

This lesson will demonstrate how to recreate a simplified version of the popular [lodash.debounce](https://lodash.com/docs/4.17.15#debounce) method from scratch. **I literally failed a job interview by messing up this question, so watch carefully!** Debounce ... more


Saturday, 30 May, 2020 UTC

javascript: Transforming All, Any, Max, & Min from Semigroups to Monoids

This lesson shows viewers how to transform the following semigroups to be valid monoid instances: `All`, `Any`, `Max`, `Min`. ... more


Saturday, 30 May, 2020 UTC

javascript: Learn How to Define a Generalized Monoidal Fold Function

This lesson continues on the topic of monoids by teaching viewers how to create a generic `fold` function that consumes a monoid as well as an array which that monoid will perform a reduction on. By the end of the lesson, you'll have created a helpful ... more


Saturday, 30 May, 2020 UTC

javascript: Build lodash.merge from Scratch

This lesson will demonstrate how to recreate a simplified version of the popular [lodash.merge](https://lodash.com/docs/4.17.15#merge) method from scratch. First we'll create a test file with two objects that we want to merge together and demonstrate ... more


Saturday, 30 May, 2020 UTC

javascript: Build lodash.get from Scratch

This lesson will demonstrate how to recreate a simplified version of the popular [lodash.get](https://lodash.com/docs/4.17.15#get) method from scratch. Our function takes 3 parameters `obj`, `string` and `defaultValue`. The primary technique we discuss ... more


Tuesday, 26 May, 2020 UTC

javascript: Get the Length of an Object with JavaScripts Object.keys Method

In this lesson, we get the length of an Object by using the `Object.keys()` method. The `Object.keys()` method returns an array of the enumerable property names. Then we determine the length of the array, by using the `length` property. ... more


Tuesday, 26 May, 2020 UTC

javascript: Determine whether a Value is an Array in JavaScript

In this lesson, you will learn how to check if a JavaScript value is an array with `isArray()` a static method provided by the `Array` built-in object. This is an alternative to using the operator `typeof`, since arrays are technically objects. ... more


Tuesday, 26 May, 2020 UTC

vscode: Visually Organize Applications in VS Code with Window Color-Coding

When working in a codebase that has frontend, backend, middleware, service, and other concerns all in the same GIT repository, it can be helpful to color-code your editor windows to quickly recognize in what area of your stack you are working. We can ... more


Tuesday, 26 May, 2020 UTC

javascript: Format Reading Time with Emojis on a Gatsby Page

This lesson will walk through how to format estimated reading time in a more visually engaging way with emojis. In this method we'll use array methods like `.fill()` and `.join()` format the estimated reading time to return a formatted string with emojis ... more


Wednesday, 20 May, 2020 UTC

egghead: Create a copy of an object in JavaScript

In this lesson, we'll go over two popular ways to create a copy of an object in JavaScript: `Object.assign` and using the spread operator. We'll also go over why using these are important, since JavaScript passes object values by reference. Finally, we'll ... more


Wednesday, 20 May, 2020 UTC

react: Authenticating a Next.js site with Auth0

Within this 7 minute video we will add authentication to the default next.js template with Auth0. This includes installing the nextjs-auth0 npm package, configuring your Auth0 account, creating API endpoints, adding login / logout buttons, and pulling ... more


Tuesday, 19 May, 2020 UTC

javascript: Leveraging Semigroups to Create Reusable Max & Min Interfaces

This lesson extends upon our knowledge of semigroups and shows viewers how to create `Max` and `Min` semigroups which provide us with an interface for comparing numerical values. [Fantasyland Docs - Semigroup](https://github.com/fantasyland/fantasy-land#semigroup) ... more


Tuesday, 19 May, 2020 UTC

javascript: Leveraging Semigroups to Create Reusable Any & All Interfaces

This lesson extends upon our knowledge of semigroups and shows viewers how to create `Any` and `All` semigroups which provide us with an interface for comparing `boolean` values. [Fantasyland Docs - Semigroup](https://github.com/fantasyland/fantasy-land#semigroup) ... more