Which programming paradigm does the programming language JavaScript follow?
A. procedural programming
B. object-oriented programming
C. functional programming
D. Imperative programming​

Answers

Answer 1

Its not functional programming (sorry)

Answer 2

Answer:

Object-oriented programming

Explanation:

Just took the test and got it right

Happy to help !!

 Which Programming Paradigm Does The Programming Language JavaScript Follow? A. Procedural Programming

Related Questions

advantages of torsion in engineering​

Answers

Answer:

Ascertain product failure

In this lab, you complete a C++ program that uses an array to store data for the village of Marengo.
The program is described in Chapter 8, Exercise 5, in Programming Logic and Design. The program should allow the user to enter each household size and determine the mean and median household size in Marengo. The program should output the mean and median household size in Marengo. The file provided for this lab contains the necessary variable declarations and input statements. You need to write the code that sorts the household sizes in ascending order using a bubble sort and then prints the mean and median household size in Marengo. Comments in the code tell you where to write your statements.
Instructions
Make sure that the file HouseholdSize.cpp is selected and open.
Write the bubble sort.
Output the mean and median household size in Marengo.
Execute the program by clicking the Run button and the bottom of the screen.
Enter the following input, and ensure the output is correct. Household sizes: 4, 1, 2, 4, 3, 3, 2, 2, 2, 4, 5, 6 followed by 999 to exit the program.
Here is my code so far. I need help finishing it (printing the mean & median, etc). Thanks so much:
// HouseholdSize.cpp - This program uses a bubble sort to arrange up to 300 household sizes in
// descending order and then prints the mean and median household size.
// Input: Interactive.
// Output: Mean and median household size.
#include
#include
using namespace std;
int main()
{
// Declare variables.
const int SIZE = 300; // Number of household sizes
int householdSizes[SIZE]; // Array used to store 300 household sizes
int x;
int limit = SIZE;
int householdSize = 0;
int pairsToCompare;
bool switchOccurred;
int temp;
double sum = 0;
double mean = 0;
double median = 0;
// Input household size
cout << "Enter household size or 999 to quit: ";
cin >> householdSize;
// This is the work done in the fillArray() function
x = 0;
while(x < limit && householdSize != 999)
{
// Place value in array.
householdSizes[x] = householdSize;
// Calculate total of household sizes
sum+= householdSizes[x];
x++; // Get ready for next input item.
cout << "Enter household size or 999 to quit: ";
cin >> householdSize;
} // End of input loop.
limit = x;
// Find the mean
// This is the work done in the sortArray() function
pairsToCompare = limit - 1;
switchOccured = true;
while(switchOccured == true)
{
x = 0;
switchOccured == false;
while (x < pairsToCompare)
{
if(householdSizes[x]) > householdSizes[x+1])
{
//perform switch
}
x++;
}
pairsToCompare--;
}
// This is the work done in the displayArray() function
//Print the mean
// Find the median
median = (limit-1) / 2;
if (limit % 2 ==0)
{
cout << "Median is: " << (householdSizes[(int)median] + householdSizes[(int)median + 1]) / 2.0 << endl;
}
else {
// Print the median household size
}
// Print the median
return 0;
} // End of main function

Answers

Answer:

For the mean, do the following:

mean = sum/limit;

cout<<"Mean: "<<mean;

For the median do the following:

for(int i = 0; i<limit; i++) {

  for(int j = i+1; j<limit; j++){

     if(householdSizes[j] < householdSizes[i]){

        temp = householdSizes[i];

        householdSizes[i] = householdSizes[j];

        householdSizes[j] = temp;       }    } }

median= (householdSizes[(limit-1)/2]+householdSizes[1+(limit-1)/2])/2.0;

if((limit - 1)%2==0){

   median = householdSizes[limit/2];

}

cout<<endl<<"Median: "<<median;

Explanation:

The bubble sort algorithm in your program is not well implemented;

So, I replaced the one in your program with another.

Also, some variable declarations were removed (as they were no longer needed) --- See attachment for complete program

Calculate mean

mean = sum/limit;

Print mean

cout<<"Mean: "<<mean;

Iterate through each element

for(int i = 0; i<limit; i++) {

Iterate through every other elements forward

  for(int j = i+1; j<limit; j++){

Compare both elements

     if(householdSizes[j] < householdSizes[i]){

Reposition the elements if not properly sorted

        temp = householdSizes[i];

        householdSizes[i] = householdSizes[j];

        householdSizes[j] = temp;       }    } }

Calculate the median for even elements

median= (householdSizes[(limit-1)/2]+householdSizes[1+(limit-1)/2])/2.0;

Calculate the median for odd elements

if((limit - 1)%2==0){

   median = householdSizes[limit/2];

}

Print median

cout<<endl<<"Median: "<<median;

What lets you do many things, like write book reports and stories?

Application Programs

Antivirus Software

Email

Duct Tape

Answers

A -
Application programs
application progarms lets you do many things

Synapse is not working and is crashing every time you attach it. What should you do?

1. Contact a staff
2. Wait for it to be fixed
3. delete it
4. Spam dm everyone

Answers

Contact a staff memeber

In the header element, insert a navigation list containing an unordered list with the items: Home, Race Info, and FAQ. Link the items to the dr _index.html, dr_info.html, and dr_ faq.html files respectively.
Home
Race info
FAQ

Answers

Answer:

Explanation:

The following is a barebones HTML document that contains the Unordered List inside the header tag as requested. The list items are also wrapped around links so that they link to the requested pages and take you there when they are clicked. These html files need to be in the same folder as this code in order for it to take you to those pages. The code can be seen below.

<!DOCTYPE html>

<html>

<head>

<ul>

   <li><a href="dr _index.html">Home</a></li>

   <li><a href="dr_info.html">Race Info</a></li>

   <li><a href="dr_ faq.html">FAQ</a></li>

</ul>

</head>

<body>

</body>

</html>

What is the difference between autofocus and autocomplete

Answers

Answer:

https://www.c-sharpcorner.com/interview-question/explain-autofocus-and-autocomplete-attribute

found this on a website hope you find it useful !

Other Questions
Essay starters for art or choirs ? i need help!! im struggling with this question This question is worth 20 points and I will mark brainliestwhich expressions are equivalent to 2 (3h + 7) choose "equivalent" or "Not equivalent" for each expression.6h+72+3h+76h+7+73h+3h+14(3h+7) + (3h+7) Find the sum of the first 40 terms of the arithmetic sequence: 16,24,32,40 How many students were questioned about the approximate number of text messages they send each day? Explain orshow how you arrived at your answer. Define emf of a battery? Using the prompt provided, determine the correct Spanish translation.1.I like (the) shoes.Group of answer choicesme gusta los zapatosme gustan los zapatosme gusta los zapatosme gusta los zapatos2.he likes the artGroup of answer choicesle gustan los artele gusta el artele gustan el artele gusta los artes3.they like the concertGroup of answer choicesellos gusta el conciertoa ellos gusta el conciertoa ellos les gusta el conciertoles gustan el concierto4.we like the shirtGroup of answer choicesnos gustamos la camisanos gustan la camisanos gusta la camisanostostros gustamos la camisa5.you pl/fam like the clothesGroup of answer choicesvosotros os gusta la ropaos gustan la ropaa vosotros os gusta la ropavosotros gusta la ropa6.they like the skirtGroup of answer choicesa ellas les gusta la faldaall answers are correcta ellos les gusta la faldales gusta la falda7.I like the red socksGroup of answer choicesme gusta los calcetines rojosa m me gustan los rojos calcetinesme gustan los rojos calcetinesa m me gustan los calcetines rojos8.you s/fam like the black shoesGroup of answer choicesa ti te gustan los negros zapatosa ti te gustan los zapatos negrosa ti te gustan los negro zapatosa ti te gusta los zapatos negros9.you s/fam don't like the restaurantGroup of answer choicesno te gustan el restaurantet no gusta el restauranteno te gusta el restauranteti no gusta el restaurante10.Do you (s/fam) like airplanes?Group of answer choicesTe gustas los aviones?Te gusta los aviones?Ti gustan los aviones?Te gustan los aviones? PROMPTThere is an enormous amount of information on the internet, but not all of it is true. Unfortunately, social media users often cant tell whether the content they see is fake or real.Read these texts:How Trustworthy Is Social Media?Digital DetectivesFakeoutNow, imagine your classmates dont know about the negative consequences of false information, photos, and videos. Write an essay explaining why fake content is dangerous. You should use evidence from the texts, and you can also use real-world examples to support your central idea.If you get stuck, try using the tips and lessons on the left side of the screen to help you out!If youd prefer, you can open this https://noredink-product.s3-us-west-2.amazonaws.com/texts/Spotting+Fakes+Online+Text+Set.pdf PDF Versions of the texts.QUESTION: Can someone write a paragraph which shows: Title, Introduction, 3 body paragraph, and a conclusion? Thanks! What is aa program How do you measure a dry ingredient like flour? Matthew decided to bake cupcakes for the school fundraiser. He wants to make 2 dozen cupcakes--one dozen strawberry and one dozen chocolate. He needs 2 1/4 cups of flour for the strawberry cupcakes and 2 1/3 cups of flour for the chocolate cupcakes, but he only has 4 cups of flour. Which two expressions could be used to correctly determine the amount of flour, in cups, Matthew still needs to bake his two dozen cupcakes? 2 part what is the total amount of flour, in cups, Mathew still needs for his cupcakes? NO LINK How do you write 6.00 105 in standard form? the sum of three consecutive natural number is 30 find the numbers whether you think it is a good solution or not? Explain why If f(1)=6f(1)=6 and f(n)=nf(n-1)-4f(n)=nf(n1)4 then find the value of f(3)f(3). Chau rented a truck for one day. There was a base fee of $18.95, and there was an additional charge of 95 cents for each mile driven. Chau had to pay $198.50when he returned the truck. For how many miles did he drive the truck? When the particles are equally spaced apart they have reached:A. HypertonicityB. Dynamic EquilibriumC. HomeostasisD. Osmolarity What was the goal of Mikhail Gorbachevs policies of perestroika and glasnost? All of the following are examples of erosion EXCEPTO The wind in the desert blows sand against a rock.O A glacier picks up boulders as it moves.O A flood washes over a riverbank, and the water carries small soil particles downstreamO An icy winter causes the pavement in a road to crack The monkeys paw quiz 1