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).
Answer:
Liam could
1) Change the password
Be sure to change the password to a "strong" one (containing lots of characters, numbers, symbols) so that way the password would be difficult to guess.
2) Avoid logging onto social media on public computers or WiFi connections.
Using public WiFi leaves you vulnerable to someone accessing your information through Internet traffic. If you do use public computers, just make sure to log out.
3) Avoid giving out account information to friends and avoid opening suspicious links and emails.
Opening suspicious links or emails could allow malware to infect your computer the moment you open them. Friends can unknowingly share these links that are designed to steal information.
I hope this helped <3 please lmk if there's anything more to add.
Answer: “Editing” in general means fixing problems in a written document so that it has no mistakes and is easy to read
Explanation: Yeah