Web Development Articles

Page 112 of 801

Non-negative set subtraction in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Aug-2023 420 Views

In the given problem statement we are presented with two arrays which contain integer values. So our aim is to find the non negative set subtraction from the two arrays. And implement the solution in Javascript. We can perform this task using the Set object and forEach method. What are the Set object and forEach method in Javascript ? Set object in Javascript The Set is an object in Javascript which is a built in data Structure introduced in ES6. This allows us to store the unique values of any type. The values can be primitive values or ...

Read More

Maximum sum of n consecutive elements of array in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 16-Aug-2023 1K+ Views

In the given problem statement our aim is to find the maximum sum of n consecutive items of array with the help of Javascript functionalities. So for solving this problem we will use basic Javascript functionalities and produce the maximum sum. Understanding the Problem The problem at hand is to find the maximum sum of n consecutive items in the array. This process will involve identifying a continuous subarray of length n within the given array which has the highest possible sum. For example suppose we have an array as [1, 2, 4, 7, 3, 5] so that ...

Read More

How do I create dynamic websites using PHP/javascript/HTML/CSS?

Aman Gupta
Aman Gupta
Updated on 16-Aug-2023 2K+ Views

Overview Dynamic websites are the website on which a user sends the request from the client side to the server side and the data is rendered in the backend, as PHP is a server side scripting language so it plays the main role while creating dynamic websites. Some of the dynamic websites are like website admin panels or the searched content for the specific users. So the HTML, CSS and JavaScript are used on the client side of the website to create a user frontend and the PHP is used as a backend scripting language to render and retrieve the ...

Read More

How do HTML and CSS work together?

Aman Gupta
Aman Gupta
Updated on 16-Aug-2023 2K+ Views

Overview HTML (Hyper Text Markup Language) is markup language which helps in creating the skeleton of the website and CSS (Cascading Style Sheet) is a styling language which makes the skeleton of the website more attractive by arranging in a proper order by putting the different style to the page. As in a human being the bony skeleton plays the role of the HTML and the properties of the human being such as color, height, size and many other properties plays the role of CSS. So when a user requests a page from the server, the server sends the response ...

Read More

How can I improve my HTML skill?

Aman Gupta
Aman Gupta
Updated on 16-Aug-2023 370 Views

Do you know what improvement in skill means? Improvement means when you understand where you are lacking behind with the latest trends. Improvement means you are filling and overcoming your bugs in the code. As HTML is a simple markup language, in HTML we only need to understand the tags and elements. To improve your skills in HTML, you should at least practice a code daily. This habit will make your code bug free and will also help you to create a new, creative and a faster way to build an application. Quality of a good developer A good developer ...

Read More

Largest difference between element with a twist in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 14-Aug-2023 222 Views

In this problem statement we have to find the largest difference between elements with a twist with the help of Javascript functionalities. So we will use basic Javascript to get the desired result. Understanding the problem The problem at hand is to find the largest difference between two items in an array. So we will add a twist to the problem. So we will not simply find the difference between two items but we will find the largest difference between an item and any smaller item that has appeared before in the array. And we will not rearrange ...

Read More

JavaScript Total subarrays with Sum K

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 14-Aug-2023 489 Views

In this problem statement, our task is to write the function for getting the total subarrays with sum K with the help of Javascript. So for doing this task we will use basic functionality of Javascript. Understanding the problem statement The problem statement is to create a function which will take an array of integers and a target sum K. So after processing the calculation it will return the total number of subarrays in the array with a sum of K. A subarray can be defined as a continuous series of items in the array. For example suppose ...

Read More

isSubset of two arrays in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 14-Aug-2023 444 Views

Our goal in the above problem statement is to use Javascript functionalities and determine whether or not the given arrays are subsets of each other. So using loops we can fix this problem. Understanding the problem The problem description specifies that we have to identify that the given array is a subset of another array. Or we have to check that all of the items in the second array are present in the first array. For example, suppose we have an array like ['a', 'b', 'c', 'd', 'e'] and a second array ['b', 'd', 'e']. So when we ...

Read More

How to split sentence into blocks of fixed length without breaking words in JavaScript

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 14-Aug-2023 2K+ Views

In the given problem statement we have to split the given sentence into blocks of fixed length without breaking the words of the sentence. And we have to implement the solution in Javascript. Understanding the Problem The problem at hand is to split the given sentence into blocks of a fixed length without breaking its words. So we will divide the sentence into substrings of a given length and also we will ensure that the words will remain intact in every block. For example suppose we have a sentence as "You are reading this article on ...

Read More

How to shift each letter in the given string N places down in the alphabet in JavaScript?

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 14-Aug-2023 2K+ Views

In the given problem statement our aim is to shift every letter in the given string N places down in the alphabet with the help of Javascript functionalities. So we will use some basic Javascript methods to complete the given task. Understanding the Problem The problem at hand is to shift the character of the given string up to the N places down in the alphabets with the help of Javascript. The purpose of this problem is we need to take a string as input and we have to update the given string by shifting every letter N ...

Read More
Showing 1111–1120 of 8,006 articles
« Prev 1 110 111 112 113 114 801 Next »
Advertisements