Found 10710 Articles for Web Development

Creating an Advanced Loading Screen in CSS

Tanmay Chandhok
Updated on 18-Jan-2023 17:37:15

810 Views

While browsing through different pages in a website, it is essential that the developer add a loading screen to the website; so that there is enough time for the website to traverse between webpages. A loading screen is an effective way, where the user can wait while the page of the website loads/initialize. How to create the loading screen? To create a loading screen, we can use HTML and CSS. Firstly, we will be creating a div element in which a heading tag is given, that shows the percentage. Then we will be using CSS properties like the border-radius to ... Read More

Difference between Auto-fit vs Auto-fill property in CSS grid

Tanmay Chandhok
Updated on 18-Jan-2023 13:07:01

953 Views

A responsive webpage is a necessary key point which has to be always kept in mind while developing a website. The grid module enables the developer to design webpages easily without using a lot of positioning, as the id module provides a grid type layout system in which there are rows and columns. The auto-fill property The auto-fill property is used to fill the rows with possible columns, the column which is added will occupy the space and the other column will be empty. The auto-fill property is an important property of the CSS grid and is mostly used so ... Read More

How to align block elements to the center?

Tanmay Chandhok
Updated on 18-Jan-2023 14:25:15

4K+ Views

The margin property in CSS can be used to centre a block element like a div horizontally. We can set the width of the element, so that, it prevents the container from stretching out. The block elements take the full space line which force other elements to take up the next line as the block elements have 100% of the container. Aligning the block elements to the center Any element that begins a new line on a web page is considered as a block-level element. For example, header tags, div, etc. These block elements take the full width of the ... Read More

Explain various math functions that can be used in CoffeeScript

Rushi Javiya
Updated on 05-Apr-2023 12:03:43

67 Views

CoffeeScript was introduced in 2009, which compiles JavaScript. The simple difference between CoffeeScript and JavaScript is that of syntax. The syntax of CoffeeScript is very simple. As CoffeeScript compiles JavaScript, we can use every method of JavaScript in CoffeeScript. So, we will explain every math function of a Math object we can use in CoffeeScript. In JavaScript, Math is a static object, so we can use it directly without taking the reference of any element. We can call the methods of the Math object by taking the ‘Math’ keyword as a reference. Math functions in CoffeeScript Math.abs() The abs() method ... Read More

Extract unique objects by attribute from an array of objects in JavaScript

Rushi Javiya
Updated on 17-Jan-2023 09:54:24

6K+ Views

We will learn to extract unique objects by attribute from an array of objects in this tutorial. Sometimes, we need to filter objects from the array of objects based on a particular attribute. For example, we have an id as a key to identify the object. So, we need to ensure that the array contains only a single object with a single id. If two or more objects contain the same primary key value, it can cause the problem of uniquely identifying objects. Here, we will learn different approaches to filter all unique objects from the array based on a ... Read More

Explore the concept of JavaScript Function Scope and different types of JavaScript Functions

Rushi Javiya
Updated on 17-Jan-2023 09:50:37

614 Views

In JavaScript, various scopes allow us to access the functions and variables from different places in our code. We will learn about the function scope in this tutorial. Also, we will explore the different types of function expressions in JavaScript. Function Scope When we create a new function in JavaScript, it also creates the scope for that particular function. It means that whatever variables we declare inside the function or define the nested function inside it, we can only access it inside the function block. If we try to access the variables defined inside the function block from outside the ... Read More

Explain the purpose of the ‘in’ operator in JavaScript

Rushi Javiya
Updated on 17-Jan-2023 09:46:28

119 Views

This tutorial will teach about the ‘in’ operator in JavaScript. There are many operators available in JavaScript, such as arithmetic operators to perform mathematical operations, assignment operators, equality operators, etc. The ‘in’ operator is also one of them, which we can use to find properties from the object. Before we start, let me ask you a question. Have you ever needed to check for the existence of the object's properties while coding with JavaScript? If yes, how did you deal with it? The answer is simple you can use the ‘in’ operator, which returns the Boolean value based on whether ... Read More

Explain the concepts of functional programming in JavaScript

Rushi Javiya
Updated on 17-Jan-2023 09:43:02

186 Views

There are mainly two programming paradigms: The imperative programming paradigm and the declarative programming paradigm. Functional programming is a subtype of the declarative paradigm. The paradigm word refers to the approach to solving a particular problem. Functional programming has been in use for the last decades but came in the trend after 2015 when the last main revised version of JavaScript was released. There are many benefits to using functional programming, which we will discuss in this tutorial. Different Concepts of Functional Programming and their benefits Functional programming works as mathematical function works. It allows developers to develop software based ... Read More

Explain sub-classes and inheritance in ES6

Rushi Javiya
Updated on 17-Jan-2023 09:40:52

283 Views

In JavaScript, developers used the prototype to inherit the function with another function in ES5. In the ES6, classes introduced in JavaScript can be used for inheritance as other programming language does. What are sub-classes and inheritance? As the subclass word represents, it is a child class of another class. We can use inheritance to create or derive a subclass from the superclass, and we can call the class to a superclass from which we derive the class and the sub-class to the derived class. The subclass contains all the properties and methods of the superclass, and we can access ... Read More

10 Interesting things you can do with a few lines of JavaScript

Rushi Javiya
Updated on 17-Jan-2023 11:15:55

192 Views

In this tutorial, let us discuss some fascinating things that a few lines of Javascript can do. Almost every website uses JavaScript. JavaScript was born in 1995, and it is a programming language similar to other languages, but it runs faster because it doesn't have many predefined functions. JavaScript can create programs, libraries, and scripts for websites or desktop applications. A lot of web developers are also good at writing JavaScript. Some JavaScript codes are fascinating if you observe how it behaves. Let us discuss what are these fascinating things in JavaScript. Fascinating things about the semicolon The end of ... Read More

Advertisements