Posts from JavaScript

Add alert on some user action in Material UI

By Asif

In this tutorial, we are learning about <Alert> component of material UI. Alert, as we see in almost every interactive website, is a way of giving the user feedback on comple.... Read More

How to create context in a React Server Component in Next.js

By Satish Sahu

In this tutorial, you will learn how and why we must create context in a React Server Component in Next.js. Two objectives of this tutorial are: Why must we create a context in the.... Read More

How to Create Pages in Next.js?

By Satish Sahu

Hi Learners, In this tutorial, you will learn about how to create pages in Next.js. Basically, the Next.js pages are React Component. You create files using  .js, .jsx .ts .tsx  .... Read More

Where to put JavaScript in HTML

By Samim

In this tutorial, we will see where and how to include JavaScript in our HTML code. JavaScript is a powerful programming language that allows us to include interactive and dynamic .... Read More

Link external JavaScript file in HTML

By Samim

In this article, we will see how to link external JavaScript (js) file in HTML. We can link an external JavaScript file to an HTML document to separate our JavaScript code from you.... Read More

Get a timestamp in JavaScript

By Samim

In this tutorial, we will see how to get timestamp in JavaScript. In JavaScript, we can get a timestamp in various ways depending on our requirements. A timestamp represents the nu.... Read More

Empty an array in JavaScript

By Samim

In this tutorial, we will learn how to empty an array in JavaScript. To make it clear and understandable, I will simply take an array variable and put some elements in it. Then I w.... Read More

Get all unique values in a JavaScript array

By Samim

In this tutorial, I will show how to get all unique values in a JavaScript array. In JavaScript, an array is a handy way to store a list of items. Sometimes, we might want to find .... Read More

Related Posts