Reversing a string in 3 ways using JavaScript

There are three popular ways you can reverse a string in JavaScript. Solution #1 - Using S-P-J (Split-Reverse-Join) Split the string into array of characters using split() function Reverse the characters of array using reverse() function Join back the characters in the array using join() function Solution #2 - Using Loop - C-L-A(Create - Loop … Continue reading Reversing a string in 3 ways using JavaScript

Advertisements

How create a serverless website using AWS Lambda, AWS S3, AWS API Gateway and AWS DynamoDB with node.js? Full Tutorial!

This post will show you how we can create a web site using AWS serverless architecture. Architecture The architecture would look something like below: The services and technologies we will be using to build this application are: AWS Lambda AWS Lambda is a compute service that lets you run code without provisioning or managing servers. AWS … Continue reading How create a serverless website using AWS Lambda, AWS S3, AWS API Gateway and AWS DynamoDB with node.js? Full Tutorial!

Node.js Series: 10 things you should know about node.js!

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code server-side. Node.js was originally written by Ryan Dahl in 2009. 10 important points about nodejs.js are as follows: 1. Open source Projects can be useful for programmers. You can learn by reading the source code and build something on top of the existing … Continue reading Node.js Series: 10 things you should know about node.js!

JavaScript: Converting a Callback to Promises

Callbacks For JavaScript to know when an asynchronous operation has returned a response (the response could be an correct result or error response), it points to a function that will be executed once that result is ready. This function is what we call a “callback function”. In a simple way, a callback is a function that … Continue reading JavaScript: Converting a Callback to Promises