Join 30,341 other Developers as we Learn, Build, and Grow Together.

Connect with fellow developers and gain access to tools that will help you build a profitable SaaS πŸš€

Sign Up

Javascript

Javascript posts, videos, courses, and more

Cross-site scripting (XSS) attacks - part 2

Cross-site scripting (XSS) attacks - part 2

In the last post I went through what is Cross-site scripting and Stored XSS attack, a type of cross-site scripting caused by stored javascript in database from user inputs. If you haven't read it, here is the link. As frontend developers we are constantly adding and releasing new features or fixing bugs as per business requirem...
4
Select One:
Cross-site scripting (XSS) attacks - part 1

Cross-site scripting (XSS) attacks - part 1

As frontend developers we are constantly adding and releasing new features or fixing bugs as per business requirements, and it's hard to keep vigilance on the security side of things. It has become a secondary concern and we are far behind the backend and Devops engineers for whom this is a primary and regular part of their thin...
7
Select One:
How to create LinkedIn-like reactions with Serverless Redis

How to create LinkedIn-like reactions with Serverless Redis

As a side hustle, I teach tech recruiters web and software development technologies using plain English. It helps them with understanding job specs and resumes and it makes all of us, tech people, happier. I run a weekly newsletter and often get feedback from recruiters via email or LinkedIn DMs. I thought that I could try to co...

Sandor

6 days ago

3
Select One:
A Very Useful Git Command For Searching Text

A Very Useful Git Command For Searching Text

In this article, we will see a very useful command to search for a particular text inside your project. Many times when working on code, you want to find out where in the repository a particular text is used, either to replace it with other text or for debugging purpose. If you try to use a global search in your favorite IDE lik...

Yogesh Chavan

1 week ago

7
Select One:
Quickly remove node_modules folders from your system to free up disk space

Quickly remove node_modules folders from your system to free up disk space

Whenever, we are working with React, Angular, Nodejs or any other library or framework, a node_modules folder gets generated when we install the dependencies which takes up a lot of space and we don’t bother to remove the node_modules folder once our job is done. So we end up creating many node_modules folders in various projec...

Yogesh Chavan

1 week ago

7
Select One:
Break and continue in Javascript

Break and continue in Javascript

You would have probably used break or continue in your javascript code at least once. Break and continue in javascript are known as jump statements. Let's look into both the statements. break The break statement causes the innermost enclosing loop or switch statement to exit immediately. You would be already familiar how break w...
6
Select One:
Understanding Closures in JavaScript

Understanding Closures in JavaScript

Introduction In this article, we will learn about closures in JavaScript. Every JavaScript developer should be aware of closures as it's the most frequently asked interview question as well as understanding it clearly will help you to avoid creating bugs in your code. So let's get started. What is closure? Before diving into clo...

Yogesh Chavan

2 weeks ago

6
Select One:
How to Replace All Occurrences of a String with JavaScript

How to Replace All Occurrences of a String with JavaScript

Introduction One of the main data types in JavaScript is strings. These data types are used for storing and manipulating text. And luckily for us, there are quite a few methods that help us in manipulating these data types. These methods are one of the many built-in methods of JavaScript. This is because JS has some built-in obj...

Boyan Iliev

2 weeks ago

6
Select One:
Using Serverless Redis as Database for Netlify Functions

Using Serverless Redis as Database for Netlify Functions

In this tutorial, we'll see how we can use Redis as a database for caching purposes to load the data faster in any type of application. So let's get started. What is Redis Redis is an in-memory data store used as a database for storing data Redis is used for caching purpose. So If your API data is not frequently changing then we...

Yogesh Chavan

2 weeks ago

5
Select One:
What you may not know about loops in JS - part 1 - for loop

What you may not know about loops in JS - part 1 - for loop

You may have used for loop, for/of and for/in a million times on your code and you probably know by now that it is used for iterating an array or object keys (or values) and execute some code within the looping statements. Javascript has five looping statements: while, do/while, for, for/of (and its for/await variant), and for/i...
5
Select One:
A Curated List of Free APIs For Your Next Project

A Curated List of Free APIs For Your Next Project

Public APIs This GitHub repository contains a ton of free APIs related to various categories like Games, News, Weather, Food & Drink etc. So don't miss this out! Chuck Norris Jokes API This is a free JSON API for hand-curated Chuck Norris facts. Genius API Using this API you can search for song lyrics and their meanings....

Yogesh Chavan

3 weeks ago

7
Select One:
All you need to know about Object an Array destructuring in one post

All you need to know about Object an Array destructuring in one post

Destructuring is a method of separating an intricate construction into easier parts. With the destructuring punctuation, we can separate more modest parts from arrays and objects. The destructuring syntax can be utilized for variable declaration or variable assignment. Syntax:- const dev = { firstName = "Rahul",...

Rahul

3 weeks ago

5
Select One:
How I Made $408 on Codementor In One Month

How I Made $408 on Codementor In One Month

I joined the Codementor as a mentor on 20th May 2021. To get accepted as a mentor on Codementor you need to show that you're capable of providing mentorship. For this, after joining Codementor, you need to provide your LinkedIn profile and GitHub profile URL. It takes some days to get accepted as a mentor. Because I regularly po...

Yogesh Chavan

3 weeks ago

6
Select One:
70+ Resources To Learn JavaScript as an Absolute Beginner

70+ Resources To Learn JavaScript as an Absolute Beginner

Hi!, today in this blog we'll be discussing some great free resources to learn JavaScript right from the scratch. So, are you excited? Let's go then! πŸš€ So first things first, are you a person like me who prefers written tutorials more effective than video tutorials? (comment below πŸ˜‰) Here are some GREAT tutorials out there: Do...

Shreya

3 weeks ago

11
Select One:
Easily Update NPM Packages Without the Fear of Breaking the Application

Easily Update NPM Packages Without the Fear of Breaking the Application

In this article, we'll explore how you can easily update npm packages used in your application without worrying about breaking the application functionality. So let's get started. Semantic Versioning Semantic versioning is such an important thing that, every developer needs to understand it whether you are a Node, React or Angul...

Yogesh Chavan

1 month ago

4
Select One:
A Step-by-Step Guide to Create and Publish npm Package

A Step-by-Step Guide to Create and Publish npm Package

Introduction In this tutorial, you will create your own npm package and publish it to the npm repository. By doing this, you will understand: How to create an npm package How to install it locally before publishing to test its functionality How to install and use the published package using ES6 import syntax or using Node.js re...

Yogesh Chavan

1 month ago

8
Select One:
How to Check if an Array Includes a Value in JavaScript

How to Check if an Array Includes a Value in JavaScript

Introduction The array is almost always used in your or someone's code. It is a very important part of programming and you probably couldn't do the stuff that you want to do without arrays. But what happens when your array gets so big you forget all the values that are stored in it. You could probably check through the whole arr...

Boyan Iliev

1 month ago

7
Select One:
What is indexOf() in JavaScript?

What is indexOf() in JavaScript?

After a long time, a new post on JavaScript methods is here... Let's learn about the indexOf() method. indexOf() It accepts two parameters: The required parameter of searchValue indicates the content you want to search for in a string. The optional start parameter indicates the position of the string in which the search will be...

Rahul

1 month ago

6
Select One:
How to Display Formatted Date in JavaScript Without Using Any External Library

How to Display Formatted Date in JavaScript Without Using Any External Library

In most of the applications, we need to display a formatted date like 18 June 2021 or 06/18/2021 along with the time. So we normally use moment.js or date-fns or day.js library to get that done. But using an external library adds a lot of extra code to the final size of the application. For example, the moment.js npm library is...

Yogesh Chavan

1 month ago

5
Select One:
Setup Email Authentication with Reset option in React App πŸš€

Setup Email Authentication with Reset option in React App πŸš€

Hello Folks πŸ‘‹ This is Savio here. I'm young dev with an intention to enhance as a successful web developer. I love building web apps with React. I have proved my superiority in frontend technologies. Today, Let's learn how you can set up Email Authentication with reset password option in your React App πŸš€. So, be with me! Let's c...

Savio Martin

1 month ago

7
Select One:
How to use the splice() method

How to use the splice() method

Introduction Arrays will always be something that you will use or run into. You can store different types of data inside of them. For example - strings, numbers, objects, and even other arrays. But what do you do when you want to remove a specific item. Well, you could delete the whole array and rewrite it, but that will be a wa...

Boyan Iliev

1 month ago

8
Select One:
JavaScript Basics: Truthy and Falsy values in JavaScript

JavaScript Basics: Truthy and Falsy values in JavaScript

Do you know that JavaScript has a set of pre-defined falsy values? Truthy and Falsy values are the non-boolean values that are coerced to true or false when performing certain operations. The following are the only eight values that are considered as falsy values in JavaScript. false undefined null "" NaN 0 -0 0n A...

Yogesh Chavan

1 month ago

6
Select One:
Scope chain and Lexical Scoping in JavaScript

Scope chain and Lexical Scoping in JavaScript

Scope chain and Lexical Scoping are central ideas of JavaScript. These ideas confound new JavaScript developers. The information on these ideas is fundamental in dominating JavaScript. Having an appropriate comprehension of these ideas will assist you with composing better, more proficient and clean code. Which will, thus, assis...

Rahul

1 month ago

7
Select One:
List of Handy Regular Expression Examples

List of Handy Regular Expression Examples

In this article, we will see some of the useful regular expressions which you can use in your real-world applications. Email validation ^[^@ ]+@[^@ ]+\.[^@ \.]{2,}$ ^[^@ ]+ => starts with the character which is not @ and space (one or more occurrence of character) @[^@ ]+ => then one single @ symbol and after that no @ sy...

Yogesh Chavan

1 month ago

6
Select One:
High Order Functions in JavaScript

High Order Functions in JavaScript

As a JavaScript developer you will utilize high order functions frequently, so having a decent comprehension of these functions is vital. Presently I see individuals get frequently confounded when finding out about the reduce() technique, yet I had clarified everything in detail so attempt to comprehend it bit by bit and I'm cer...

Rahul

1 month ago

6
Select One:
How To Write Your First Node.js Script

How To Write Your First Node.js Script

Introduction Until recently(if you think that 2009 is recently), we could only run JS code in a web browser. Node is a JavaScript runtime that executes code outside of the browser. We can use the same JS syntax we know and love to write server-side code, instead of relying on other languages like Python or Ruby. You can build We...

Boyan Iliev

1 month ago

9
Select One:
Navigation with React Router

Navigation with React Router

React Router is a simple library of React inside web app for handling routes. Here we will learn Navigation with React-Router. Basic routing with react-router-dom Let's see these two Components. const PageOne = () => { return ( <> <h1>Content One</h1> </> ) } const...

Rahul

1 month ago

4
Select One:
Page visibility and full-screen mode WEB API  | Web Development for Beginners

Page visibility and full-screen mode WEB API | Web Development for Beginners

Hey, learners and beginners here is my latest post, where we gonna know about Page visibility and Full-Screen Mode WEB API. Page visibility Web API PageVisibility API is used for detecting the visibility of the page. The document object provides properties and event listeners to detect the page visibility. This API is useful for...

Rahul

1 month ago

2
Select One:
What is reduce() method in JavaScript

What is reduce() method in JavaScript

The reduce() method is used to apply a function to each element in the array to reduce the array to a single value. Let's see the syntax:- let result = array.reduce((acc, v, i, a) => { // return the new value to the result variable }, initVal); // result - the single value that is returned. // array - the array to run th...

Rahul

1 month ago

4
Select One:
Extremely Useful Lodash Methods For JavaScript Developers

Extremely Useful Lodash Methods For JavaScript Developers

According to the State of Javascript 2020 Survey results, Lodash is the second most widely used utility library in the world as it provides a lot of methods that make coding easy and fast. In this article we will see, some of the most useful methods provided by lodash which makes coding easy. So let's get started. Installation...

Yogesh Chavan

1 month ago

5
Select One:

Loading More Content