In JavaScript, filtering an array can be done by using the filter() method. This method is used to create a new array with all the elements that pass the condition provided in the callback function. However, what if we want to filter out the values for which the comparator function does not return true? Syntax arr.filter(compare) Here compare is a comparator function used to compare the elements in the array arr. We could define it to return true or false. On the basis of the return value of the compare function, the function “filter” filters the array. Algorithm ... Read More
Protocol The URL segment that specifies the data transfer protocol to be utilised is referred to as the protocol of a URL. In this example, https:// indicates for the HTTPS protocol. We will learn how to obtain the website URL for the currently seen webpage or website in this article. The 'URL' property of the Document object, which has data on the current URL, is used to get the current URL. The "URL" property returns a string that includes the complete address of the currently seen page as well as the HTTP protocol, such as (http://). Syntax Following is the ... Read More
When a user accesses a web application using JavaScript, the "navigator" object contains details about the browser they are currently using. You may be aware that each browser functions differently when it comes to how it interprets JavaScript. In this case, the navigator object supports in modifying your application to the user's browser preferences. The browser engine or product name can be viewed in JavaScript by accessing the "navigator.product" attribute of a navigator object. In any browser, "Gecko" is always the value of the Navigator.product property. Only compatibility considerations are used to maintain this characteristic. Syntax The JavaScript syntax for ... Read More
First, let us understand how attributes work in JavaScript. Any element's attributes can be changed with JavaScript. The attributes property stores them, and invoking it gives you direct access to them. If we target an element with a class, the class will also appear as an attribute, and we can actually utilize these attribute methods to change classes if we so choose. Now, keep in mind that while we have designated the properties and methods for classes, you can also utilize all of these characteristics to manipulate classes in any element if necessary. href attributes in JavaScript In the href ... Read More
The contents of the specified date object are converted into a string using the date.toJSON() function. Applying date() constructor, the date object is generated. Dates describe a particular moment in time. The value of the Date object is described by a string that is returned by the toJSON() function (using toISOString()). In general, this function is programmed to automatically meaningfully serialise Date objects during JSON serialisation. The DateObj is a valid Date object produced by the Date() constructor function, and its data has been transformed into a string. Here are some additional codes for the procedure mentioned below in the ... Read More
concat() method The fundamental operation for combining two strings is concatenation. String combining is a necessary part of programming. We need to first clear out the fundamentals before we can discuss "String Concatenation in JavaScript." A new string is produced when an interpreter performs the operation. In order to create a new string, the concat() method joins the calling string and the string arguments. The initial string and the string that was returned are unaffected by changes to either. When concatenating, string values are first transformed from parameters that are not of the type string. Syntax Following is the syntax ... Read More
A workstation is a computer which is used to access LAN or Internet to get access to documents or perform a task, whereas a server is a software which responds to services requested by a client. Read through this article to know more about workstations and servers and how they are different from each other. What is a Server? A server is a computer, a device, or a program entirely responsible for managing network resources. Servers are called so because they provide the functionality to a "client, " another computer, device, or application. In theory, computers are considered servers ... Read More
A wireless network connection originating from a router has a limited coverage range beyond which weak signals become unreliable. As you go further away from the router, the signals will get less strong, and your internet connection will become less reliable. When this occurs, we have a need to boost the strength of the WiFi signal and expand the area that it covers. WiFi repeaters and extenders are what we need to accomplish these tasks. There is a common misconception that a WiFi extender and a repeater are the same thing. It is not so; there are significant differences between ... Read More
There are games, movies, and other forms of 3D content that you can explore to have AR and VR experience on your smartphones, PCs, tablets, and VR headsets. In many different industries including marketing, education, training, remote support, exercising, remote diagnosis of illness, gaming, and entertainment, companies and developers are using Augmented Reality (AR), Virtual Reality (VR), or both. On the other hand, there are those who might not know which path to take. This guide will help you decide between the two by providing a side-by-side comparison of both. What is Virtual Reality? A computer-generated simulation of an alternative ... Read More
Unshielded Twisted Pair or UTP are twisted pair cables that are used to transmit both data and voice, as their frequency range is suitable for transmission. UTPs are more cost-effective and are not needed to be grounded. Shielded Twisted Pair or STP are also a twisted pair cables but are required to be grounded, wants more maintenance, have high data transmission capacity and are costlier than UTP. Read through this article to find out more about UTP and STP cables and how they are different from each other. What are Shielded Twisted Pair (STP) Cables? IBM invented shielded twisted pair ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP