With newly released Visual Studio Code 1.74, the Microsoft-developed code editor introduces a remote tunneling capability that allows developers to securely connect to their VS Code machine from any device anywhere. Remote tunnels is a preview feature. VS Code 1.74, also identified as the November 2022 release, was announced December […]
Code
Exploring Deno and Bun (with code examples)
Node.js is the defacto JavaScript runtime for the backend. In this post, you will learn about newer Node.js alternatives Deno and Bun with a simple Joke API code example and how to host it. Let’s get started! Table of contents # Not comparing with other languages # JavaScript is a […]
How to use JavaScript Promise.all with real-life code example
Async execution and promises are not easy to understand in any language and JavaScript is no exception. In this post, we will dissect how JavaScript Promise.all function works visually and with a real-life code example, let’s get started! Table of contents # What is a JavaScript Promise # Promise or […]
How to add days to a date in JavaScript (with code examples)
There are several use cases to add days to a date in JavaScript. For instance to get the date 5 days after today. In this post, you will learn how to add days to a date in JavaScript with and without external NPM packages. Let’s get rolling! Table of contents […]
Return multiple values from a function call with code examples
Learn how to return multiple values from a function call in Javascript. Unlike go lang, JavaScript does not have a native way to return multiple values from a single function. In this post, you will learn how to improvise on this and get around the issue if you have to […]
How to use TypeScript optional parameters with example code
TypeScript is a superset of JavaScript that has climbed up in popularity in the past few years. In this post, we will learn how to use optional parameters in TypeScript functions, let’s get started! Table of contents # Example of printing full name # For this tutorial we will use […]