1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
rosijanka [135]
3 years ago
13

On React

Computers and Technology
2 answers:
sladkih [1.3K]3 years ago
8 0

Answer:too many words ahhh

Explanation:

Deffense [45]3 years ago
3 0

(assuming jsx)

function Buttons (props) {

return(

{props.counterValue}

counter

increment

reset

);

}

var counterValue = 1;

function addup(a){

if(counterValue + a <= 20){

counterValue += a;

} else if (counterValue + a > 20){

//do nothing

}

ReactDOM.render(

 ,

 document.getElementById('root')

);

}

function reset() {

counterValue = 1;

ReactDOM.render(

 ,

 document.getElementById('root')

);

}

You might be interested in
Write a while loop that prints userNum divided by 2 (integer division) until reaching 1. Follow each number by a space.
Ksenya-84 [330]

Answer:

   while(userNum>=1){

       System.out.print(userNum/2+" ");

       userNum--;

        }

Explanation:

This is implemented in Java programming language. Below is a complete code which prompts a user for the number, receives and stores this number in the variable userNum.

<em>import java.util.Scanner;</em>

<em>public class TestClock {</em>

<em>    public static void main(String[] args) {</em>

<em>    Scanner in = new Scanner (System.in);</em>

<em>        System.out.println("Enter the number");</em>

<em>    int userNum = in.nextInt();</em>

<em>    while(userNum>=1){</em>

<em>        System.out.print(userNum/2+" ");</em>

<em>        userNum--;</em>

<em>         }</em>

<em>    }</em>

<em>}</em>

The condition for the while statement is userNum>=1 and after each iteration we subtract 1 from the value of   userNum until reaching 1 (Hence userNum>=1)

3 0
3 years ago
Assume that you have 22 slices of pizza and 7 friends that are going to share it (you've already eaten). There's been some argum
xz_007 [3.2K]

Answer:

In Python:

numberOfWholeSlices = int(22/7)

print(numberOfWholeSlices )

Explanation:

For each friend to get a whole number of slices, we need to make use of the int function to get the integer result when the number of slices is divided by the number of people.

So, the number of slice is: 22/7

In python, the expression when assigned to numberOfWholeSlices  is:

numberOfWholeSlices = int(22/7)

Next, is to print the calculated number of slices

print(numberOfWholeSlices )

4 0
3 years ago
This is how you debug code ​
Bogdan [553]

Answer:

thanks for teaching us how to debug

Explanation:

4 0
2 years ago
Ryan would like to copy a list of contacts from a colleague into his personal address book. The list of contacts is contained in
Yanka [14]

The first thing Ryan should do is to: C. format the text file with comma-separated values and save as CSV file type.

<h3>What is a file?</h3>

A file simply refers to a computer resource that avails end users an ability to store, save, or record data as a single unit on a computer storage device.

Since the list of contacts is contained in a simple text file, formatting the text file with comma-separated values and saving it as a CSV file type should be the first thing Ryan should do in this scenario.

Read more on CSV file here: brainly.com/question/14338529

#SPJ1

6 0
3 years ago
To someone on the internet or another outside network, it appears that all information is coming from a single computer when ___
aev [14]
Application gateway or application layer gateway
6 0
3 years ago
Other questions:
  • Gathering information with your eyes is called
    13·2 answers
  • count multiples(num1, num2, AND) Description: Returns the number of multiples of N that exist between num1 and num2 inclusive. P
    12·1 answer
  • Cryptanalysis is made more difficult by having shorter keywords.a) trueb) false
    6·1 answer
  • Which of the following is optional equipment on a basic life support​ ambulance? A. Lubricating jelly B. Flashlights C. Disinfec
    11·1 answer
  • True/False: The American Standard Code for Information (ASCII) is a code that allows people to read information on a computer.
    9·2 answers
  • Use the Windows ________ to check on a nonresponsive program. Select one: A. Backup utility B. Task Manager C. System Restore D.
    10·1 answer
  • True or False: Variablename must start with a number.
    13·1 answer
  • PLEASE HELP!!!
    8·1 answer
  • FS EVERFI:
    7·2 answers
  • We initialize the parameters to all zero values and run the linear perceptron algorithm through these points in a particular ord
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!