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
Tema [17]
3 years ago
10

What does the following code alert?

Computers and Technology
2 answers:
valkas [14]3 years ago
6 0
<span> My best friend's name isMike,he's 25 years old and his favorite food is pizza</span>
goldenfox [79]3 years ago
5 0

It is just a declaration of an object variable, <em>person</em>, in JavaScript. Within a <em>person</em> object, there are key:value pairs. The code that you  shared has the following keys: name, age, and favouriteFood, whereas the values of those keys are: Mike, 25, and pizza.


There is <em>no</em> alert statement in this code snippet; therefore, it <em>will not alert </em>anything. This code contains only a variable called <em>person, </em>and that's it!

You might be interested in
write a java program that prompts the user to enter scores (each number an integer from 0 to 10) and prints the following output
Vladimir [108]

Answer:

Explanation:

The following is written in Java. It continues asking the user for inputs until they enter a -1. Then it saves all the values into an array and calculates the number of values entered, the highest, and lowest, and prints all the variables to the screen. The code was tested and the output can be seen in the attached image below.

import java.util.ArrayList;

import java.util.Arrays;

import java.util.Scanner;

class Brainly {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int count = 0;

       int highest, lowest;

       ArrayList<Integer> myArr = new ArrayList<>();

       while (true) {

           System.out.println("Enter a number [0-10] or -1 to exit");

           int num = in.nextInt();

           if (num != -1) {

               if ((num >= 0) && (num <= 10)) {

                   count+= 1;

                   myArr.add(num);

               } else {

                   System.out.println("Wrong Value");

               }

           } else {

               break;

           }

       }

       if (myArr.size() > 3) {

           highest = myArr.get(0);

           lowest = myArr.get(0);

           for (int x: myArr) {

               if (x > highest) {

                   highest = x;

               }

               if (x < lowest) {

                   lowest = x;

               }

           }

           System.out.println("Number of Elements: " + count);

           System.out.println("Highest: " + highest);

           System.out.println("Lowest : " + lowest);

       } else {

           System.out.println("Number of Elements: " + count);

           System.out.println("No Highest or Lowest Elements");

       }

   }

}

4 0
3 years ago
Why do you think flowers are a popular topic for macro photography? Do you think you’d like to photograph flowers?
Helen [10]

Why do you think flowers are a popular topic for macro photography?

Macro photography is the part of photography that focuses on taking pictures of very small objects (or small parts of larger objects).  Popular subjects are insects, flowers and small mechanical parts.

Flowers are a very popular subject because they always have lots of interesting details no matter how close you zoom in, like insects.  Flowers however tend to be easier to photograph because they move a lot less than insects.

Do you think you’d like to photograph flowers?

Yes, because it's a new way to look at them.

6 0
3 years ago
What is Nintendo's uniqueness?​
docker41 [41]
It’s unique because it comes with 2 screens well dependents which Nintendo
7 0
3 years ago
Read 2 more answers
For this activity, you will practice being both proactive and reactive to bugs. Both are necessary to get rid of errors in code.
Illusion [34]

Answer:

okk

Explanation:

4 0
3 years ago
(ANSWER!)
andreev551 [17]

Answer:

it doesn't? maybe it helps by resetting it but other than that I don't think It does anything

4 0
3 years ago
Read 2 more answers
Other questions:
  • Write a function called calculate() that accepts three integer Numbers as arguments, compute these values : Sum and Product and
    7·1 answer
  • The phrase ____ refers to an organization of components that define and regulate the collection, storage, management and use of
    10·1 answer
  • Identify the output, input, and any missing information for the following problem. George wants to find out how much extra he wi
    15·1 answer
  • Kash has created a document that needs to be protected. only certain users should be able to open the document. what option shou
    5·1 answer
  • What is text box and label control​
    10·2 answers
  • The purpose of this category of interview questions is to learn about the interviews personal attributes
    6·1 answer
  • Difference between server and a client computer
    7·1 answer
  • Write a python program to print the square of all numbers from 0 to 10.
    15·2 answers
  • Which of the following uses the proper syntax for creating an HTML comment?
    8·1 answer
  • Please help me i’ll give you brainlist
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!