10. There is repeated code in these onevent blocks. Choose the correct code for the updateScreen() function which would be called in each of the onEvent blocks.

1

var counter

0;

2

3

onEvent("upButton", "click",

function

4

counter

counter + 1;

5

setText ("counter_label", counter);

set Property ("counter_label", "text-color",

6

"red");

7

if

counter

8

set Property ("counter label",

"font-size", 24);

9

10

11

onEvent ("downButton",

"click",

function

12

counter

counter

Answers

Answer 1

Answer:

front zise24

Explanation:

on event down botton

Answer 2

The correct code for the updateScreen() function which would be called in each of the onEvent blocks is setText ("counter_label" counter) = = 0.

What is a function?

A function refers to a set of statements that makes up an executable code and it can be used in a software program to perform a specific task on a computer.

In this scenario, the correct code for the updateScreen() function is written as follows:

function updateScreen()   { ⇒

       setText ("counter_label" counter)  {

       if (counter == 0);

          setProperty ("counter_label", "font-size", "24") ;

       }                         +

}

In conclusion, the executable code for the updateScreen() function which would be called in each of the onEvent blocks is "setText ("counter_label" counter) = = 0."

Read more on function here: brainly.com/question/20264183

#SPJ2

10. There Is Repeated Code In These Onevent Blocks. Choose The Correct Code For The UpdateScreen() Function

Related Questions

Ugh these are hard questions

Answers

9 is B, and 10 is D I think ... brainliest pls

The image shows a bar graph.

A bar graph shows a series of 4 vertical bars along an x and y axis.

In which scenarios would using this graph be best for a presentation? Check all that apply.

showing change in a community’s average median age over a century
comparing the percentages of the types of pets owned in a community
showing how the world’s shark population has changed over 50 years
comparing the number of men and women who earned engineering degrees in a decade
showing the percentages of the various religions practiced in Indonesia

Answers

Answer:

showing change in a community’s average median age over a century

showing how the world’s shark population has changed over 50 years.

comparing the number of men and women who earned engineering degrees in a decade

Explanation:

Approximately how many tweets are posted on Twitter each day? 500 500 thousand 500 million 500 billion

Answers

Answer:

around 500 million

Explanation:

When you send large attachments, you are not
a. considering the needs of others
b. doing anything wrong
c. helping to maintain respectful communication
d. following social conventions
Please select the best answer from the choices provided
A
ОО
B
ОС

Answers

Answer:

c,becauses she is helping

Explanation:

thank me later

Answer:

A

Explanation:

i got a 100

Help me please. I'LL MARK BRAINIEST

Answers

Answer:

A and B

Explanation:

yes

Provides an array of buttons for quick access to commonly used commands and tools

A. scroll bar

B. tool bar

C. status bar

D. menu bar

Answers

Answer:Tool bar

Explanation:

The toolbar is said to provide an array of buttons for quick access to commonly used commands and tools. Through the toolbar, one can easily access the commands that are commonly used.

We can see the toolbar in several software like the graphics editor, office suites, and browsers.

The answer is B. Tool Bar!

Erin would like to add a photo to a presentation. However, she only has the printed copy of the photo. She does not have a digital copy. What should Erin do?

Answers

Answer:

Erin should scan the photo.

Took it on Edge <3

Answer:

Erin should scan the photo.

Explanation:

That´s what I thought :)

Where do the projection lines converge in a perspective sketch?

Answers

Answer:

Option B, Vanishing point

Explanation:

The complete question is

Where do the projection lines converge in a perspective sketch?

A. the ground line

B. the vanishing line

C. the eye point

D. the horizon line

Solution

A point lying on the image of a perspective drawing where the drawings ( two-dimensional perspective projections) of two parallel line meet in three dimensional space is known as Vanishing point

Other Questions
Es el documento a travs del cual nos podemos comunicar con una persona que se encuentra lejos, por ejemplo tos, primos, amigos etc 9x^2+25 Can someone doble this Penny reads 12 pages in 1/4 of an hour. What is the unit rate of pages per hour, and what is the unit rate of hours per page? I know the unit rate of pages per hour is 48, but I am stuck on the unit rate of hours per page. I'm coming up with .020833. Please help. Thanks. What were the first cities like? Carmen is 4 1/4 years younger than Antoine. Katy is 5 1/2 years older than Carmen, To the nearest year, what is the difference in Antoine's age and Katy's age What rights does Jefferson mention in the Declaration of Independence?Why does each of these mean? You are having a group project at the house of your classmate; One of them open cigarettes. Everybody smokes., You are asked to try even just once to experience it. Please help me Elena can make 15 pizzas in 3 hours. If the number of pizzas is represented by p and time is represented by t, Write an equation that shows the total number of pizzas made in terms of time. [2 points] i love it when u call me senorita i wish it wasnt so damm hard to leave ya >:)))))))))i use u guys to get though exam PLEASE PLEASE PLAESE HOW MANY TIMES CAN I SAY PLEASE I NEED HELP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!answer likeanswer 1. _____________Answer 2.____________answer 3.______________answer 4.______________ plzz helppppp"The city of Chicago will rewrite its gun ban ordinance because a Supreme Court ruling today has made the current law 'unenforceable.' The 5-4 decision reversed a ruling that had upheld Chicago's ban on handguns." Which Supreme Court case gave judges the power described above? a. Marbury v. Madison b. McCulloch v. Maryland C. Dred Scott v. Sanford d. Gibbons v. Ogden (03.01) Which of the following is a factor of x2 6x 27? (1 point) Select one: a. x + 3 b. x + 9 c. x 1 d. None of the above Please help me on this question 30 points on the line Visible light is a part of what spectrum Please help! Will give Brainliest! Who are your social supports ? A . family B. friends C. teachers D. all of the above if they respect and support you positively Does anyone have all the answers for Connexus United States History U4 L2 the Great Depression and New Deal Test? Help me please this is dew by the end of the day Manuel no fue _____ a la fiesta.