Check Value in JavaScript Sets

Arnab Chakraborty
Updated on 23-Aug-2022 06:54:47

173 Views

In javascript, we may use some sets to hold a few objects. Sometimes we want to check whether an element is present inside a set or not. In this article, we will see different techniques to check whether an element is inside a given set or not.p> A trivial method using for loop At first, we can search for an element by manually picking an element and checking whether it is the same as the key element or not. If so then simply return true, otherwise after completing all elements return false. Examples HTML ... Read More

Async Await Functions in JavaScript

Arnab Chakraborty
Updated on 23-Aug-2022 06:52:12

948 Views

Handling asynchronous tasks is essential for network programming. In JavaScript most cases, we ask for data that are not synchronous to our system. To handle asynchronous systems, we can use Async and Await functions in JavaScript. The async keyword which is used with a function will qualify a javascript function as an asynchronous function. Async Function The async functions are very similar to the normal functions in javascript. The syntax is like below− From the syntax, it is clear that only the ‘async’ keyword is added to the function signature. Syntax async function name(param1, param2, ...paramN) { ... Read More

Multiple Inheritance in JavaScript

Arnab Chakraborty
Updated on 23-Aug-2022 06:39:00

6K+ Views

JavaScript is a partially object-oriented language. To work with this, the object-oriented nature needs to be understood. In this article, we are going to focus on the multiple inheritance concept inside JavaScript. An object can be inherited from multiple other objects, i.e. the object has common property from other parent objects not only a single parent. In JavaScript, this can be achieved by merging properties from different properties into one single object. Let us see the overall syntax which represents how multiple properties can be merged. SyntaxLet us consider a function syntax like the below − function multiple(...arguments) { ... Read More

Method Chaining in JavaScript

Arnab Chakraborty
Updated on 23-Aug-2022 06:34:35

8K+ Views

Method or function chaining is a popular method in JavaScript that is used to write more concise and readable code. In this article, we shall discuss the method of chaining tactics in JavaScript and also discuss how it works In some JavaScript programs written with JQuery or some other packages, sometimes we call multiple functions one after another on the same line. This can be explained by a simple example as shown below − Syntax ob = ob.method_1().method_2().(some more methods).method_n() Example Without using the method of chaining. HTML Console ... Read More

Difference Between Malware and Adware

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:58:23

2K+ Views

A Malware is a malicious program that is used by attackers to perform illegal operations on a user's machine, such as stealing personal information, corrupting system/network, encrypting data for "ransom" or deleting the data, etc.An Adware is a program that displays Ads during its execution. Developers get money from this advertisement. This application may capture user activity and display ads accordingly. An attacker can misuse this feature of adware and can compromise the system security.Read through this article to find out more about Malware and Adware and how they are different from each other.What is a Malware?Malware is any program ... Read More

Difference Between Cybersecurity and Network Security

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:50:24

1K+ Views

Both these terms "cybersecurity" and "network security" are related to security measures that organizations employ to protect their data, systems, and network infrastructure from online threats. However, cybersecurity is used in a much broader sense, while network security is a subset of cybersecurity. Read through this article to find out more about cybersecurity and network security and how they are different from each other.What is Cybersecurity?Cyber security refers to the use of technology, methods, and policies to reduce the danger of cyber-attacks while also protecting the systems, networks, programs, devices, and data from unwanted access.The field of cybersecurity is becoming ... Read More

Difference Between Static and Dynamic Web Pages

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:47:22

20K+ Views

When we surf the Internet, a two-way communication takes place between our web browser (client) and a web server (server). To regulate this communication, there are some protocols among which the most common one is the HTTP protocol, where the browser sends an HTTP request to the server and then the server returns an HTTP response to the browser.On the basis of the type of response sent to the browser, we can classify the webpages into two categories: Static webpage and Dynamic webpage.Read through this article to find out more static and dynamic webpages and how they are different from ... Read More

Difference Between Deep Web and Dark Web

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:46:18

1K+ Views

When we surf the Internet, the webpages that we see and the contents that we download generally come from the "surface web". This is the part of the world wide web that is accessible to all with an Internet connection. The Surface Web is huge, but in reality, it covers only 10% of the whole Internet.Beside the Surface Web that is transparent and accessible to all, there are two more levels of the Internet that remain hidden in the background. These two are known as the Deep Web and the Dark Web.The deep web contains the web content that is ... Read More

Difference Between MPLS and VPN

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:45:07

3K+ Views

A VPN connects a private network to another public network, which allows users to transmit and receive data as if their computers were connected to the private network physically.MPLS is a routing technique that is used to improve the speed and control of the network traffic. It speeds up traffic flows by avoiding complex lookups in the routing table at each node as in conventional routing algorithms.Read through this article to find out more about MPLS and VPN and how they are different from each other.What is VPN?VPN stands for virtual private networks. It is a network type that is ... Read More

Difference Between USB 2.0 and USB 3.0

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:43:35

2K+ Views

What is USB?A Universal Serial Bus (USB) is a communication interface that allows devices to communicate with a host controller such as a computer system. It links peripheral devices including digital cameras, mice, keyboards, scanners, printers, media players, flash drives, and external hard drives to a computer.A USB may be used for a multitude of things, including providing electrical power, which is why the USB has replaced an array of interfaces like the parallel and serial ports.USB ports are used to connect peripheral devices to computers in a variety of ways.USB 1.xIt is an external bus standard that supports up ... Read More

Advertisements