Found 8895 Articles for Front End Technology

Fastest way to convert JavaScript NodeList to Array

Shubham Vora
Updated on 17-Mar-2023 12:37:14

1K+ Views

In this tutorial, we will learn the fastest way to convert JavaScript NodeList to Array. NodeList is a similar structure to an array; it is a collection of DOM (Document Object Model) elements. However, array methods like ‘map( )’, ‘filter( )’, and ‘slice( )’ cannot be used on NodeList objects. There are so many ways to convert NodeList to Array, but this task can be done faster using these two ways − By iterating for loop Using Array.from( ) function By iterating for loop In JavaScript, we can use for loop to iterate over the NodeList to get ... Read More

Explosion Animation in Canvas

Shubham Vora
Updated on 17-Mar-2023 12:26:44

831 Views

In this tutorial, we will learn to create an explosion animation effect using canvas in HTML. Using canvas, we can draw graphics on a web page in an easy and powerful way. Let’s see some examples of creating explosion animation in canvas. Explosion Animation 1 We will create an explosion of 50 randomly colored particles that originate from the center of the canvas and move in random directions. The particles will continue to move until the page is refreshed. Algorithm Step 1 − Create an HTML canvas element with an id of "explosion" and set its dimensions to 400x400 ... Read More

Explain V8 engine in Node.js

Shubham Vora
Updated on 17-Mar-2023 12:09:36

1K+ Views

We will learn about the V8 engine, Node.js, and the connection between V8 and Node.js. Overview of V8 JavaScript Engine V8 is a high-performance JavaScript engine developed by Google and used in Google Chrome, the open-source browser from Google. It was designed to improve the performance of web applications by compiling JavaScript into native machine code rather than interpreting it, which makes it faster. V8 is C++ based open source JavaScript engine. It runs on various platforms, like Linux, Windows, and macOS. It has features like just-in-time (JIT) compilation, garbage collection, and support for modern JavaScript features such as classes, ... Read More

Express Cookie-Parser – Signed and Unsigned Cookies

Shubham Vora
Updated on 17-Mar-2023 12:34:03

1K+ Views

We can use cookies to store the user information on the client side in the web browser. For example, whenever a user opens any website in the browser, it requests some information to the server, and once the client gets the information, it stores it in the browser with the expiry time. It makes the website faster for users, as it doesn’t need to request the server for information every time users come back to the site. However, once cookies expire, the client requests the server again for that information. In this tutorial, we will learn about the express cookie-parse ... Read More

Explain the role of callback function in AJAX

Shubham Vora
Updated on 17-Mar-2023 11:41:05

1K+ Views

AJAX (Asynchronous JavaScript and XML) is not a programming language but a technique for creating more interactive web applications. Unlike conventional web applications, which direct us to a new page when interacting with the server, AJAX loads data onto the screen without letting the user know that the request was even made. Advantages Displays content dynamically without reloading the HTML page. Faster interaction with the users. Updates the data within the page without redirecting the user. Users were allowed to use the website while communication with the server went in the background. What is meant by Callback Function? ... Read More

Explain the MUL() function in JavaScript

Shubham Vora
Updated on 17-Mar-2023 11:25:32

556 Views

In this tutorial, we will learn to implement MUL() function in JavaScript. This function is a very small kind of multiplication function. Basically, we use the concept of nested functions to implement MUL( ) function. Nested functions are used for creating closures and decorators. And we can achieve privacy using nested functions. There are two ways to implement MUL() function using nested functions − Using nested function with name By currying a function Using nested Function With Name In JavaScript, we can use nested functions to get the multiplication result. We need to write n nested functions to ... Read More

Advantages of CoffeeScript Over JavaScript

Shubham Vora
Updated on 04-Apr-2023 12:32:16

175 Views

What is JavaScript? It is a loosely typed language that is mainly used in development. We can use javascript both in frontend as well as backend development. The nature of programs is synchronous and executed line by line. You can run javascript on any system or browser as it contains a javascript engine. What is CoffeeScript? CoffeeScript is a subset of javascript in a naive way and is compiled into javascript internally. It is a lightweight language in nature, having user-friendly syntaxes which are contrary to the complex syntax of JavaScript. Many languages like Perl, Python, and Ruby, along with ... Read More

How to create linear gradient background using CSS?

Shabaz Alam
Updated on 16-Mar-2023 15:10:10

731 Views

Linear gradient background in CSS is a design technique used to create a smooth transition between two or more colors in a single element. It is defined using the CSS background-image property and the lineargradient() function. Linear gradient Properties in CSS to − it specifies the direction of the gradient color-stops − It specifies the colors used in the gradient and their position. repeating-linear-gradient − Creates a repeating gradient, where the gradient pattern is repeated horizontally or vertically. background-size − It specifies the size of the gradient background. background-clip − It specifies the area of the element that the ... Read More

How to create gooey balls animation using HTML & CSS?

Shabaz Alam
Updated on 16-Mar-2023 15:08:43

311 Views

Gooey balls animation is a type of animation that is created using HTML and CSS. This animation style is created by specifying values of CSS properties at different points in the animation using keyframes, and then applying the animation to the HTML element. Gooey balls are a popular and visually appealing animation style created using HTML and CSS. In this animation we create a smooth, flowing and squishy effect to a circular object, making it look like a ball made of goo. This type of animation is a great way to add a fun and engaging touch to the website. ... Read More

How to create button hover animation effect using CSS?

Shabaz Alam
Updated on 16-Mar-2023 15:06:46

2K+ Views

The hover animation effect in CSS refers to the change in appearance of an element when the mouse pointer is over it. We use CSS to create various animation effects on hover, such as scaling, fading, sliding, or rotating elements. Properties of button hover animation effect transform − This property allows you to scale, rotate, or translate an element. opacity − This property sets the transparency level of an element, where 1 is fully visible and 0 is completely transparent. background-color − This property sets the background color of an element. color − This property sets the text color ... Read More

Advertisements