Skip to content

Category: JavaScript

JavaScript

Mapping Over a NodeList in JavaScript

In JavaScript a NodeList is an array-like list of objects. One thing to remember though is that array methods will not work on a nodelist because it's not an array! In this article, we talk about how to map over a NodeList.

February 4, 2020
JavaScript

How to Delete node_modules on Windows

Deleting node_modules on Windows 7 and Windows 10 can be a frustrating experience if you try to do it from Windows Explorer or Command-Line because the file path names tend to get really long.

December 24, 2019
nodeJS Logo
Cloud Computing

Writing to S3 from AWS Lambda

To write to Amazon S3 from an AWS Lambda function in Node.js, you can use the AWS SDK for JavaScript in Node.js.

December 3, 2019
Salesforce Logo
jQuery

Using jQuery in Salesforce Lightning

Up until recently, if you were building websites you pretty much always used jQuery. jQuery really simplified working with the browser document object model (DOM) and doing really custom animations. In this blog post, we go through how to jQuery with the Lightning Locker Service turned on.

March 5, 2019
JavaScript

20 Vanilla JavaScript Project Ideas

With that being said, here's a collection of ideas on things you can build in vanilla JavaScript without requiring libraries or frameworks. To be able to understand what the frameworks and libraries are doing for us, which is required when debugging hard problems, it's important to understand the concepts.

February 19, 2019
JavaScript

NodeJs: ReferenceError: fetch is not defined

As you may have noticed, fetch doesn't work in Node.js. The fetch API isn't implemented in Node, so you need to use a package that implements it and then use that.

February 12, 2019
JavaScript

10 JavaScript Array Methods Every Programmer Should Know

Arrays are usually used to store a list of elements that need to be accessed by a single variable. I believe that to use JavaScript effectively every developer should be able to use any one of these methods on an array. These methods can save a lot of lines of codes and also allow us to do some pretty awesome function programming!

January 22, 2019
Cloud Computing

How to Resolve Serverless error: lambda is not a function

When trying to invoke any of your lambda functions if you are getting an error that says "lambda is not a function" the problem is likely that the handler is misspelled in the serverless.yml file OR you aren't exporting modules.exports.handler and are instead exporting something else.

January 15, 2019
JavaScript

Automatically Compressing Images With NodeJs

Over the years, I've worked on a number of projects where we deal with user or company provided images which are often very large resolutions which take a long time to download on mobile phones or or poor internet connections. This is a simple script that can be used to compress images and avoid potential costs of a service like Kraken.io

January 8, 2019
JavaScript

How to Remove Duplicates From An Array in JavaScript

As a JavaScript developer, there's occasionally a need to remove duplicates from an array of values. By using our knowledge of advanced data sets we can write a lot less code and take advantage of built in features in JavaScript.

June 5, 2018
JavaScript

Introduction to the Knex.js Database Module

Knex is a JavaScript / Node.js library that is designed to make working with relational databases easier. Knex.js is a SQL query builder. It has the potential to make tdd and database versioning much easier.

May 29, 2018
JavaScript

How to replace jQuery with Vanilla JavaScript

As a programmer, and technology manager I think it's really important to use the right tools and technologies. There are times where I think jQuery is still really valuable but there are a lot of times where I don't think it is valuable.

April 2, 2018
Book Review

Book Review: JavaScript: The Good Parts

Although, JavaScript: The Good Parts is nearly ten years old I would argue it’s still a pretty good book to read. Literally,…

March 19, 2018
JavaScript

Using the New JavaScript Fetch HTTP API

Fetch is a browser API that allows us to retrieve or submit remote data using the fetch() function. The Fetch API provides a function that returns a promise that lets us do something with the response from the request we sent.

January 16, 2018
JavaScript

What does “use strict” do in JavaScript?

Strict mode became available in ECMAScript 5 to allow us to prevent certain actions from being taken and to allow it to throw better exceptions. Strict mode allows us to write better quality JavaScript.

December 5, 2017
JavaScript

Implementing a Palindrome Checker in JavaScript

A palindrome is a word or sentence that's spelled the same way both forward and backwards. Most of the time when doing these challenges during programming interviews you're told to ignore punctuation, case and spacing.

October 24, 2017