Count Number of Words in Given String in JavaScript

vineeth.mariserla
Updated on 29-Jun-2020 09:34:01

5K+ Views

Using regular expressions it is easy to count number of words in a given string in javascript. There are some steps to be followed to count number of wordsSteps to followWe know that a sentence or a phrase is made up of words that are separated with spaces in between and there are some instances in which the words are separated by 2 or more spaces. A developer must notice all these points while calculating no of words. Step-1Exclude the start and end spaces of a string. The following line of regex expression will remove the start and end spaces of ... Read More

Switched Ethernet

Moumita
Updated on 29-Jun-2020 09:32:41

7K+ Views

Ethernet is a set of technologies and protocols that are used primarily in LANs. It was first standardized in 1980s as IEEE 802.3 standard. Ethernet is classified into two categories: classic Ethernet and switched Ethernet.In switched Ethernet, the hub connecting the stations of the classic Ethernet is replaced by a switch. The switch connects the high-speed backplane bus to all the stations in the LAN. The switch-box contains a number of ports, typically within the range of 4 – 48. A station can be connected in the network by simply plugging a connector to any of the ports. Connections from ... Read More

Architecture of Classic Ethernet

Moumita
Updated on 29-Jun-2020 09:31:57

3K+ Views

Ethernet is a set of technologies and protocols that are used primarily in LANs. It was first standardized in 1980s as IEEE 802.3 standard. Ethernet is classified into two categories: classic Ethernet and switched Ethernet.Classic Ethernet is the original form of Ethernet that provides data rates between 3 to 10 Mbps. The varieties are commonly referred as 10BASE-X. Here, 10 is the maximum throughput, i.e. 10 Mbps, BASE denoted use of baseband transmission, and X is the type of medium used.ArchitectureClassic Ethernet is simplest form of Ethernet. It comprises of an Ethernet medium composed of a long piece of coaxial ... Read More

Switched Ethernet vs Classic Ethernet

Moumita
Updated on 29-Jun-2020 09:31:11

3K+ Views

Ethernet is a set of technologies and protocols that are used primarily in LANs. It was first standardized in 1980s as IEEE 802.3 standard.Ethernet can be broadly classified into two types −What are classic Ethernet and switched Ethernet?Classic Ethernet is the original form of Ethernet that provides data rates between 3 to 10 Mbps. The stations are connected by hubs that allow each station to communicate with every other station in the LAN. There are a number of varieties of classic Ethernet, commonly referred as 10BASE-X. Here, 10 is the maximum throughput, i.e. 10 Mbps, BASE denotes use of baseband ... Read More

What is DIX Standard

Moumita
Updated on 29-Jun-2020 09:29:36

2K+ Views

DIX standard is a popular standard for Ethernet that was put forth in 1978. The name DIX is an abbreviation of the three organizations who implemented it, namely DEC, Intel and Xerox. DIX Ethernet provides data speed of 10 Mbps.DIX Ethernet is also known as Ethernet II framing. The main fields of a frame of DIX Ethernet are −Preamble: It is an 8 bytes starting field that provides alert and timing pulse for transmission.Destination Address: It is a 6 byte field containing physical address of destination stations.Source Address: It is a 6 byte field containing the physical address of the sending ... Read More

What is Thick Ethernet?

Moumita
Updated on 29-Jun-2020 09:29:08

2K+ Views

Thick Ethernet was the first commercially available form of cabling supported by Ethernet. It is technically known as 10-BASE-5. Here, 10 is the maximum throughput, i.e. 10 Mbps, BASE denoted use of baseband transmission, and 5 refers to the maximum segment length of 500 metres (1, 600 ft). This type of cabling allows 100 stations to be connected to it by vampire taps. The stations share a single collision domain.Structure of CableThe coaxial cable of thick Ethernet is 0.5 inches in diameter and usually has a yellow outer PVC coating. It is a low-loss 50 Ohm cable and is somewhat ... Read More

Rotate Out Up Right Animation Effect with CSS

usharani
Updated on 29-Jun-2020 09:20:01

53 Views

To create rotate out up right animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes rotateOutUpRight {             0% {                -webkit-transform-origin: right bottom;                -webkit-transform: rotate(0);                opacity: 1;             }             100% {                -webkit-transform-origin: right bottom;                -webkit-transform: rotate(90deg);                opacity: 0;             }          }          @keyframes rotateOutUpRight {             0% {                transform-origin: right bottom;                transform: rotate(0);                opacity: 1;             }             100% {                transform-origin: right bottom;                transform: rotate(90deg);                opacity: 0;             }          }          .rotateOutUpRight {             -webkit-animation-name: rotateOutUpRight;             animation-name: rotateOutUpRight;          }                           Reload page                function myFunction() {             location.reload();          }          

Rotate Out Up Left Animation Effect with CSS

Abhinanda Shri
Updated on 29-Jun-2020 09:19:28

72 Views

To create rotate out up left animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes rotateOutUpLeft {             0% {                -webkit-transform-origin: left bottom;                -webkit-transform: rotate(0);                opacity: 1;             }             100% {                -webkit-transform-origin: left bottom;                -webkit-transform: rotate(-90deg);                opacity: 0;             }          }          @keyframes rotateOutUpLeft {             0% {                transform-origin: left bottom;                transform: rotate(0);                opacity: 1;             }             100% {                -transform-origin: left bottom;                -transform: rotate(-90deg);                opacity: 0;             }          }          .rotateOutUpLeft {             -webkit-animation-name: rotateOutUpLeft;             animation-name: rotateOutUpLeft;           }                           Reload page                       function myFunction() {              location.reload();           }          

HTML Base Href Attribute

Arjun Thakur
Updated on 29-Jun-2020 09:18:05

233 Views

The href attribute of the element sets the base URL for all relative URLs. For example, base URL as https://example.com/tutorials for all the relative URLs like /html, /java, /jquery etc., which are eventually −https://example.com/tutorials/html https://example.com/tutorials/java https://example.com/tutorials/jqueryFollowing is the syntax −Above, absolute _URL is the absolute url for the base URL. Let us now see an example to implement the href attribute of the element −Example Live Demo    Tutorials List    Java Tutorial(This will act as https://www.example.com/tutorials/java.html)    jQuery Tutorial(This will act as https://www.example.com/tutorials/jquery.html)    Blockchain Tutorial(This will act as https://www.example.com/tutorials/blockchain.html)    Python Tutorial(This will ... Read More

PHP max() Function

Malhar Lathkar
Updated on 29-Jun-2020 09:12:39

617 Views

Definition and UsageThe max () function returns highest element in array, or highest amongst two or more comma separated parameters.Syntaxmax ( array $values ) : mixedOrmax ( mixed $value1 [, mixed $... ] ) : mixedParametersSr.NoParameter & Description1valuesIf only one parameter is given, it should be an array of valaues which may be of same or different types2value1, value2, ..If two or more parameters aregiven, they should be any comparable values of same or different typesReturn ValuesPHP max() function returns highest value from the array parameter or sequence of values. Standard comparison operators are applicable. If multiple values of different types evaluate ... Read More

Advertisements