Home » Web Development » JavaScript » Page 2

JavaScript

Send SMS – Twilio via Nodejs

Hello. In this tutorial, we will create a simple nodejs application for sending SMS with Twilio. 1. Introduction Sending SMS these days is handy as it is useful across various business use cases. For sending SMS via this nodejs application I will be using Twilio under a free tier account which offers limited support but should be good for our ...

Read More »

JavaScript parseInt()

Bipartite Graph

1. Introduction This is an in-depth article related to the Javascript parseInt method. This method is used for parsing an integer string to return an integer. This method has parameters string and radix. Radix parameter represents the numeral system. 2. Javascript parseInt()  The parseInt() method parses a string and returns an integer or NaN. 2.1 Prerequisites A browser that supports ...

Read More »

Javascript slice() Method

Bipartite Graph

1. Introduction This is an in-depth article related to the Javascript slice method. The slice method is used for getting a subset of elements in the array. 2. Javascript slice() The slice() method on the array returns a new array having a part of the array. The actual array does not change. 2.1 Prerequisites A browser that supports javascript is ...

Read More »

otp authentication node js

Hello. In this tutorial, we will create a simple node js application and implement an otp authentication login mechanism. Once the otp will be verified an access token will be generated that can be further used to access the secure api’s. 1. Introduction Authentication and authorization are the key features of any application. Authentication provides access while authorization specifies what ...

Read More »

javascript:void(0)

Hello. In this tutorial, we will create a simple HTML page and understand the use of the javascript:void(0). You can also check this tutorial in the following video: JavaScript Tutorial for Beginners – Video 1. Introduction 1.1 What is a Javascript It is lightweight object-oriented programming used for scripting HTML pages. It helps users to build modern applications by directly ...

Read More »

Deploy Nodejs application to Kubernetes

Hello. In this tutorial, we will create a simple nodejs application and deploy it on the Kubernetes cluster running on Docker. 1. Introduction In the present world, Docker is an important term – Often used in CI/CD platform that packages and runs the application with its dependencies inside a container Is a standard for Linux Containers A Container is a ...

Read More »

Google authentication Nodejs and Passport

Hello. In this tutorial, we will understand and implement the google sign-in integration with the nodejs application using passport and passport-google-oauth2 modules. 1. Introduction Passport.js is an authentication middleware designed for Nodejs. passport-local uses the passport strategy for authenticating with a username and password. The module helps to authenticate using a username and password in the nodejs applications. If you ...

Read More »

Nodejs Nodemailer example

Hello. In this tutorial, we will understand the nodemailer module in a simple nodejs application. We will set up a fake smtp server (e.g. smtp4dev) for localhost development and understand the package implementation. smtp4dev is an open-source service that emulates an smtp email server for email testing and debugging purposes. 1. Introduction Nodemailer is an npm module used for sending ...

Read More »

Nodejs and graphql

Hello readers. In this tutorial, we will implement GraphQL with nodejs and focus on creating a hello world application. 1. Introduction GraphQL is an API syntax that defines how to fetch data from one or more databases. It was developed by Facebook to optimize the RESTful API calls. It is a data query and manipulation language for API’s. It is ...

Read More »