Answer:
- var count = 0;
- var counterElement = document.getElementById("counter");
- counterElement.innerHTML = count;
- var a = setInterval(
- function(){
- count++;
- counterElement.innerHTML = count;
- if(count == 5){
- clearInterval(a);
- }
- }
- , 300);
Explanation:
The solution code is given from Line 6 - 15.
setInterval function is a function that will repeatedly call its inner function for an interval of time. This function will take two input, an inner function and the interval time in milliseconds.
In this case, we define an inner function that will increment count by one (Line 8) and then display it to html page (Line 9). This inner function will repeatedly be called for 300 milliseconds. When the count reaches 5, use clearInterval to stop the innerFunction from running (Line 11 - 13).
The answer is LinkedIn.
LinkedIn manage your personal identity. It also build and engage in your professional network. It access knowledge, insights and opportunities. It links people, skills and opportunities to create world largest crowd business creation system.
Answer:
Auto-negotiation protocol is the modern technology in the networking. This protocol allow the ethernet equipment for automate different instillation steps. This type of protocol use by interconnecting various electronic devices for negotiating the speed of the link.
Advantages:
- The auto negotiation protocol features used to maximize the throughput of data link layer.
- This protocol are basically useful in the local area network (LAN), with multiple capability of connections.
- The auto negotiation protocol extremely useful in twisted pair which are based on ethernet.
Disadvantages:
- This type of protocol are not fixed data links and not used as backbone of the networks.
- Duplex mismatch occur then, it cause significant loss in the packets.
Widget is an item that appears in a programs graphical user interface.