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
siniylev [52]
3 years ago
6

Write a JavaScript function named countUp( ), which displays 1 to 10.

Computers and Technology
2 answers:
castortr0y [4]3 years ago
6 0

Answer:

class countUp {

 constructor() {

   for (let i = 1; i <= 10; ++i) {

   console.log(i);

    }

 }

}

const count = new countUp();

Explanation:

To solve the problem we create a class called countUp with the main method called constructor, inside constructor we have a for loop that iterates from one to ten increasing the variable i by one after each iteration, inside the for is a console function to print the numbers from one to ten one at a time. Note that for this program to work we need to instantiate the class countUp using the variable count.

Ann [662]3 years ago
3 0

Answer:

Following are the code in javascript

<html>

<body>

<button onclick="countUp()">Try it</button>

<script>

function  countUp()

{

var i;

for (i = 0; i <=10; i++)

{

document.write(i) ;

document.write("<br>") ;

}

}

</script>

</body>

</html>

Explanation:

In this program when we click on button " Try it " it call the javascript function countUp( )  which display the value from 1 to 10.

output

1

2

3

4

5

6

7

8

9

10

You might be interested in
A company set up controls to allow only a specific set of software and tools to install on workstations. A user navigates to a s
Jlenok [28]

Answer:

Whitelisting

Explanation:

What is Whitelisting

Application whitelisting specifies a list of application that are allowed to run, but no others are.

4 0
3 years ago
A special symbol that is used as an underlining structure to an agenda
Gnesinka [82]
What? what are you asking
6 0
3 years ago
Consider the definition in OCaml
xenn [34]

Answer:

The type of b is bool ( B )

The type of c is int ( C )

The type of d is int ( D )

Explanation:

The options that must hold zero are: The type of b is bool,The type of d is int and The type of c is int.

If b is true then c or d is true because c and d are int. this is because b been a true/false means that d and c are boolean int. because d and c are assigned to integers  

8 0
3 years ago
There are 10 girls and 8 boys at a party. A cartoonist want to sketch a picture of each boy with each girl. How many sketches ar
kykrilka [37]
80 sketches will be required. It’s just multiplication. Let x=boys and y=girls. If x=8 and y=10, then one boy has to be with one girl. In total 1 boy will be with 10 girls, so that’s 10 sketches. You do the same for boy #2 and so on. It adds up to 80.
3 0
3 years ago
The negotiation process involves several steps such as: preparing for negotiation; knowing your walk-away point; and working tow
Rina8888 [55]

Answer:

TRUE

Explanation:

Negotiation may be defined as the process or a method with the help of which people try to settle their differences or they try to come to a conclusion in a matter of differences. Here an agreement or a compromise is reached without any dispute and arguments. It is a skill.

It involves preparing for the negotiation with other person, understanding and knowing when one needs to walk out of the negotiation process to avoid arguments and working towards the common goal of achieving an agreement.

Therefore, the answer is true.

6 0
3 years ago
Other questions:
  • When reading data across the network (i.e. from a URL) in Python 3, what method must be used to convert it to the internal forma
    9·1 answer
  • You can add envelopes to existing documents. <br> a. True <br> b. False
    10·1 answer
  • Which one of these tasks best describes the process of localization?
    12·1 answer
  • [Submit on zyLabs] Please write a function with one input, a matrix, and one output, a matrix of the same size. The output matri
    10·1 answer
  • Which activity might require you to provide your social security number
    8·2 answers
  • During a network evaluation an administrator discovers excessive cable between a transmitter and its antenna. To clean up the lo
    9·1 answer
  • A digital native is a person who has been exposed to technology at a(n) ___________ and is comfortable using it.a. old ageb. sch
    14·1 answer
  • What is impact of Internet<br> in our lives
    7·1 answer
  • Which securities protect data through processes, procedures,decisions,and user pernissions. Determines where and how data can be
    13·1 answer
  • Can someone pls do a toradora,Mha or princess jellyfish rp I'm open for anyother rp's
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!