Tag: javascript
31 articles
- Go for JavaScript Developers: The Very Basics
A practical introduction to Go for JS developers who want to build backend services, starting from zero.
- Lambda Expressions vs Anonymous Functions
When learning a functional programming style you will often come across the term Lambda Expressions or Lambda Functions. In simple terms they are just functions that can be used as data and therefore declared as a value. Let's explore a few examples.
- JavaScript typeof Number
Often you will need to check that you have a number before using it in your JavaScript, here's how.
- JavaScript Async Await
Working with JavaScript Promises you have a couple of approaches to consider for interacting with the response. The Promise doesn't give you the response in the exact format you can work with, let's dive in and explore things.
- JavaScript Promises
JavaScript Promises are used in most modern web applications where we need to do some work that takes some time to complete. A popular example of this is fetching data from an API, where the result is needed to be displayed in your app.
- Using JavaScript To Access URL Segments
Whilst working on a recent project, I wanted an accordion navigation to remain open depending on what the category segment in the url was displaying.
- Basic Module Pattern JavaScript
Wrap your code in an immediately invoked function expression (IFFE). It runs immediately when you create it and has no name.
- JavaScript Objects
JavaScript objects are used everywhere. It's an important concept to understand right from the beginning.
- Passing Arguments in Javascript
You can pass arguments into functions to be used within the function. These arguments can be any JavaScript data type including functions.
- Factory Function To Create An Object In JavaScript
Use a constructor function that returns an object. You can then create multiple people passing in the first and last name arguments the `createPerson` function.