JavaScript

NextJS Server Actions

Understand Server actions in NextJS 14

Server actions in NextJS is very powerful feature introduces by the Vercel. Server Actions are asynchronous functions that are executed on the server. They can be used in Server and Client Components to handle form submissions and data mutations in Next.js applications. What are Server Actions in NextJS 14? Server Actions in nextJS 14 are asynchronous functions […]

Understand Server actions in NextJS 14 Read More »

Web Development, Next JS,
Hash password node js

Hashing passwords using Bcrypt with Nodejs

According to Wikipedia “bcrypt is a password hashing function designed by Niels Provos and David Mazières, based on the Blowfish cipher. In real life applications with User authentication functionality, it is not practical to store user password as the original string in the database but it is good practice to hash the password and then store them into the database.

Hashing passwords using Bcrypt with Nodejs Read More »

JavaScript, Node JS, Web Development,
Javascript-array-method

JavaScript Array Methods

Converting Arrays to Strings The JavaScript method toString() converts an array to a string of (comma separated) array values. Example const fruits = [“Banana”, “Orange”, “Apple”, “Mango”]; let fruitsString = fruits.toString(); console.log(fruitsString); Result: Banana,Orange,Apple,Mango The join() method also joins all array elements into a string. It behaves just like toString(), but in addition you can specify the separator: Example const fruits = [“Banana”, “Orange”, “Apple”, “Mango”]; let fruitsJoin

JavaScript Array Methods Read More »

JavaScript,
javascript function

Difference between First-Class and Higher-Order Functions in JavaScript

A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable. Example |

Difference between First-Class and Higher-Order Functions in JavaScript Read More »

JavaScript, Web Development,
Scroll to Top