Whats wrong with my code for .addEventListener
Html code:
Don't Give Up
Ho...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 21.07.2021 17:10 LILYTH8413
Whats wrong with my code for .addEventListener
Html code:
Don't Give Up
Home
TAKE ACTION
Fighters
a:link {
color: Blue;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: Purple;
background-color: transparent;
text-decoration: border;
}
a:hover {
color: black;
background-color: transparent;
text-decoration: underline;
}
a:active {
color: Blue;
background-color: transparent;
text-decoration: underline;
}
Extra Facts
Click Me
Java code:
var factList = [
"Mo", /*0*/
"ok", /*1*/
"oh", /*2*/
"shh"]; /*3*/
var fact = document. getElementById("fact");
var wind = document. getElementById('wind');
var count = 0;
wind. addEventListener('click', displayfact());
function displayfact(){
fact. innerHTML = factList[count];
count++;
if (count == factList. length){
count = 0;
}
}
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
You know the right answer?
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 25.09.2020 21:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 25.09.2020 21:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 25.09.2020 21:01
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.09.2020 21:01
![question](/tpl/images/cats/himiya.png)
Chemistry, 25.09.2020 21:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.09.2020 21:01
![question](/tpl/images/cats/biologiya.png)
Biology, 25.09.2020 21:01
![question](/tpl/images/cats/biologiya.png)
Biology, 25.09.2020 21:01
![question](/tpl/images/cats/mat.png)
Mathematics, 25.09.2020 21:01
![question](/tpl/images/cats/istoriya.png)
History, 25.09.2020 21:01