Fendadis John has Published 72 Articles

How to get the difference between two arrays in JavaScript?

Fendadis John

Fendadis John

Updated on 18-Jun-2020 08:23:34

296 Views

To get the difference between two arrays in JavaScript, try to run the following code. Here, we’re using some method like split(), indexOf(), sort(), etc to get the elements, which aren’t the same in both the arrays &mnus;ExampleLive Demo           JavaScript Dates         ... Read More

Advantages and Disadvantages of the TCP/IP Model

Fendadis John

Fendadis John

Updated on 17-Jun-2020 12:44:08

30K+ Views

The advantages of TCP/IP protocol suite areIt is an industry–standard model that can be effectively deployed in practical networking problems.It is interoperable, i.e., it allows cross-platform communications among heterogeneous networks.It is an open protocol suite. It is not owned by any particular institute and so can be used by any ... Read More

The Session Layer of OSI Model

Fendadis John

Fendadis John

Updated on 17-Jun-2020 12:41:55

9K+ Views

The session layer (layer 5) is responsible for establishing, managing, synchronizing and terminating sessions between end-user application processes.The main functions of the session layer are as follows −It works as a dialog controller. It allows the systems to communicate in either half-duplex or full-duplex mode of communication.It is responsible for ... Read More

How to add a YouTube Video to your Website?

Fendadis John

Fendadis John

Updated on 16-Jun-2020 08:20:41

844 Views

To add a YouTube Video to your website, you need to embed it. To embed a video in an HTML page, use the element. The source attribute included the video URL. For the dimensions of the video player, set the width and height of the video appropriately.The Video URL ... Read More

Java variable declaration best practices

Fendadis John

Fendadis John

Updated on 15-Jun-2020 05:46:54

2K+ Views

Following are the best practices while declaring a variable.Variables names should be short or long enough as per the scope. For example, loop counter variable, i is fine whereas employee as a loop variable.Specific words should not be used as equals, compare, data.Use meaningful names which can explain the purpose ... Read More

What is the purpose of a self-executing function in JavaScript?

Fendadis John

Fendadis John

Updated on 12-Jun-2020 12:08:10

393 Views

The purpose of a self-executing is that those variables declared in the self-executing function are only available inside the self-executing function.Variables declared in the self-executing function are, by default, only available to code within the self-executing function.It is an immediately invoked function expression (IIFE). It is a function, which executes ... Read More

How to set the shape of the border of the top-right corner with JavaScript?

Fendadis John

Fendadis John

Updated on 23-May-2020 10:08:48

228 Views

To set the shape of the border of the top-right corner in JavaScript, use the borderTopRightRadius property. Set border radius using this property.ExampleYou can try to run the following code to learn how to set the shape of the top-right border with JavaScript.Live Demo           ... Read More

How to convert String to Boolean in JavaScript?

Fendadis John

Fendadis John

Updated on 20-May-2020 08:55:35

280 Views

You can try to run the following to learn how to convert String to Boolean in JavaScript.ExampleLive Demo           Convert String to Boolean                var myString = "Amit";          document.write("Boolean : " + Boolean(myString));          

What is the role of pageYOffset property?

Fendadis John

Fendadis John

Updated on 19-May-2020 10:59:13

328 Views

If you want to get the pixels of the document scrolled to from the upper left corner of the window, then use the pageXoffset and pageYoffset property. Use pageYoffset for vertical pixels.ExampleYou can try to run the following code to learn how to work with pageYOffset property in JavaScript.Live Demo ... Read More

How to compare strings in Java?

Fendadis John

Fendadis John

Updated on 26-Feb-2020 08:11:55

773 Views

You can compare two Strings in Java using the compareTo() method, equals() method or == operator.The compareTo() method compares two strings. The comparison is based on the Unicode value of each character in the strings. The character sequence represented by this String object is compared lexicographically to the character sequence ... Read More

Advertisements