Declare a variable using var named hobbies and set it equal to an array with three strings inside of it. Use window.alert to show the contents of hobbies. Create a new variable myHobby and set it equal to the first element in the array. Set the innerHTML of the the HTML element with the id of hx to the myHobby variable. Now, set the innerHTML of the HTML element with the id of hz to the the third element in the hobbies array using bracket notation to access the element. Do this on a single line, not create a variable for either the li element or the array value before you write it. Awesome, you can access each element in an array using the index. But what happens if you try to access an index that is beyond the last element

Answers

Answer 1

Answer:

Hard to read this so im just going to write as I read.

Explanation:

// Create array

let hobbies = ["string 1", "string 2", "string 3"];

// Pop an alert for each hobby

for (let i = 0; i < hobbies.length; i++) {

 window.alert(hobbies[i]);

}

// Or to show all at once

windows.alert(hobbies[0] + "\n" + hobbies[1] + "\n" + hobbies[2]);

// Creating myHobby variable

let myHobby = hobbies[0];

// Changing 'hx' elements innerHTML to the 'myHobby' variable

document.getElementByID("hx").innerHTML = myHobby;

// Changing the 'hz' element to the third index of the 'hobbies' array.

// Array index's start at 0, so 1 2 3 is equal to 0 1 2

document.getElementByID("hz").innerHTML = hobbies[2];

// if you referenced hobbies[2]; it would throw an error saying you are accessing a non-existent index. Not those exact words but something like that, lemme know if you need anymore help. This is for JavaScript BTW and it is not tested so there could be Errors


Related Questions

What are limiting factors and carrying capacity?

Answers

Hope this helps sorry if it does not

Choose the correct color to complete the sentence.
It is generally understood that
Blank is the best color choice for a global audience.

Answers

Answer:blue is the best color choice for a global audience.

Any tips or tricks I can use on my phone?​

Answers

Answer:

What phone you got mate? I'm interested

Answer:

No ffrjrirrjj dudjddiejejej

The invention of computers as a technological tool has completely changed our lives. Name any three areas to support this statement and explain how computers have made our lives better

Answers

Answer:

-They allow huge amounts of information to be stored in a small space

-They also allow a person to calculate mathematical problems with ease

-They allow people to communicate with one another through internet sites

-Finally, computers provide teachers and students the means to communicate quickly via email. Online grading systems also make it easier to view and audit a student's progress

Hope i helped!

PLEASE BE CONFIDENT ABOUT YOUR ANSWER


Which of the following statements is FALSE?
the value of the ID attribute....

a. may not start with a number
b. must be unique within each document
c. must not start with a special character
d. should be lowercase?

Answers

Answer: d. should be lowercase.

Explanation:

ID attributes are case sensitive for the most part - DOM and Java Script - which means that the ID attribute does not always have to be lowercase.

It can be uppercase as well. ID attributes can also start with a number and as of HTML 5 can start with a special character as well. Finally, the ID attribute must always be unique within each document.

Answer:

d. should be lowercase?

Explanation:

Hope this helps

Help me guys please.​

Answers

Answer:

1. a

2. i

3. e

4. b

5. d

6. h

7. g

8.c

9. j

10. f

Okie so I can see you at the

you can use tables for layout work. However, in XHTML, each form control should have its own ______ element

a. method
b. textarea
c. label
d. fieldset

Answers

Answer:

c. label

Explanation:

Don't Answer if you are going to give me a link! Don't Waste My Points!

An image is considered a portrait if the person is looking into the camera lens.

A.
True

B.
False

Answers

Answer:

Hello there! :) It could be considered a portrait but that is not exactly what a portrait is.

Explanation:

A portrait is mostly considered a painting or drawing of someone that that same person has drawn. For example, a portrait of the Mona Lisa would have been her drawing/painting herself. Now someone just looking at camera lens would'nt exactly be true, it would be false so the answer is B. False

Hope this helps!

Answer: False

Explanation: I don't know 100%, but it wouldn't make sense if it was because the person can be really far away and still be looking at camera, as well as be looking slightly away from lens and it still look like a portrait.

The National Archives is part of the federal government, which means that its content:

-belongs to everyone.

-is off limits to the public.

-comes with extreme licensing fees.

-is outdated and useless.

Answers

Answer:

belongs to everyone.

Explanation:

A National Archive can be defined as the collection of data (informations) and documents by the government of a particular country for record keeping purposes.

Basically, these documents comprises of information about important and historical events that have happened in the country or events generally related with the country.

Hence, the National Archives is part of the federal government, which means that its content belongs to everyone. This is simply because the federal government is a government of the people, for the people and by the people. Thus, the ownership of governmental institutions or agencies belongs to the general public i.e the citizens of the country.

Can someone help me?

Answers

*☆*――*☆*――*☆*――*☆*――*☆*――*☆*――*☆*――*☆**☆*――*☆*――*☆*――*☆

Answer: Try restarting the computer

I hope this helped!

<!> Brainliest is appreciated! <!>

- Zack Slocum

*☆*――*☆*――*☆*――*☆*――*☆*――*☆*――*☆*――*☆**☆*――*☆*――*☆*――*☆

Did you try command Q... or the X

what is data? why is it important to collect data ? explain the points.​

Answers

Answer:

so i dont know if u mean like science or math but like there similar. so data is the results and information you get when you do experiments. It is important to collect it so it can back up your reasons and points. It also helps us advance and become smarter.

Explanation:

explain types of fans & their function​

Answers

Answer: 1. Ceiling Fan: As they are suspended into the middle of the room, they transfer air in equal quantity.

2. Table Fan: Used in small purpose office room and home tables for max. 5 people.

3. Tower Fan: Take lesser space, compact and portable, used to maintain and encourage air flow.

4. Pedestal/Stand Fan: Used in rooms with larger space, make less sound, are portable and used in a single room at a time for up to 10 people.

5. Exhaust Fan: Used in bathrooms and kitchens to provide ventilation and remove any odour or smoke.

               

Explanation:

Don't Answer if you are going to give me a link! Don't Waste My Points!

Keisha is working with a furniture company to take branding photographs for their website. The furniture is fun, brightly colored, and meant for children’s rooms. What props should Keisha bring to get the best branding photographs for the company?

A.
some cups of steaming espresso and linen napkins

B.
adult clothing and dark, heavy curtains

C.
her camera equipment

D.
children’s toys and brightly colored rugs

Answers

Answer:

D. Childrens Toys and brigh colored rugs

Explanation:

It is because they mentioned that it was for children and they already have bright furniture, so it only makes sense.

What tool do you use to fill a cell with color?
Sort
Fill Color
Bold
Function bar

Answers

to fill a cell with Color you will usethe fill Color tool

To print preview a document, navigate to the _____ tab and select the Print option. File Page Design View Insert

Answers

Answer:

Option A

Explanation:

The process of viewing the print preview option in MS word is as follows -

a) First of all click on the File tab

b) After clicking on file tab, click on the print button at the left hand side

c) In the new tab that open up after clicking on the print button will provide an option of print preview.

Hence, option A is correct

Answer:

b. page layout

Explanation:

WHERE THE SMART PEOPLE AT??????


PLEASE I NEED HELP

THIS IS MY LAST QUESTION FOR THE TEST

PLEASE

I KNOW THE ANSWER IM JUST MAKING SURE


You can use tables for layout work. However, in XHTML, each form control should have its own ______ element

a. method

b. textarea

c. label

d. fieldset

Answers

Answer:

I would say A. Method

Explanation:

.

The Fed: decreases the money supply when the economy contracts. performs banking services for commercial banks in districts where it operates. calculates the expected expenditure for the federal government every year. outlines expected revenue that is due from the collection of taxes and fees.

Answers

Answer:

performs banking services for commercial banks in districts where it operates.

Explanation:

The Federal Reserve System ( popularly referred to as the 'Fed') was created by the Federal Reserve Act, passed by the U.S Congress on the 23rd of December, 1913. The Fed began operations in 1914 and just like all central banks, the Federal Reserve is a United States government agency.

Generally, it comprises of twelve (12) Federal Reserve Bank regionally across the United States of America.

Hence, the Fed performs banking services for commercial banks in districts where it operates, as well as providing services to the general public.

Which types of file formats are the best choice for files that may need to be edited later?
(Select all that apply.)

a. JPEG
b. PSD
c. PNG
d. TIFF

Answers

Answer:

PSD, PNG, TIFF

Explanation:

JPEGs compress image data, which leads to random pixels, it is especially disastrous for digital artists in the field of Pixel Art, as it causes blurry pixels.

PSDs are files saved by Photoshop, an image editing program

PNGs are your average run of the mill images that are commonly used in many art tools like Piskel or Aseprite

TIFFs are used for high-quality raster-type graphics, they are generally used in software programming, specifically for graphics. It supports lossless compression or in layman's terms, no image data is lost during the compression process.

The decimal equivalent of the product of 1011 and 1100 is

Answers

Answer:

132

Explanation:

We convert each number to base 10 (decimal) and multiply.

So 1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰

= 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1

= 8 + 0 + 2 + 1

= 11₁₀

1100₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 0 × 2⁰

= 1 × 8 + 1 × 4 + 0 × 2 + 0 × 1

= 8 + 4 + 0 + 0

= 12₁₀

So, 1011₂ × 1100₂ = 11₁₀ × 12₁₀ = 132₁₀

So, the decimal equivalent of the product of 1011 and 1100 is 132

Where is information stored in the computer?​

Answers

Answer:

files

Explanation:

data is stored in files

Edhesive unit 4 test answers

Answers

Answer:

Can you show the questions?

Explanation:

True or False: Nested elements must be indented with respect to parent elements in
order for the code to be properly displayed in a browser

Answers

Answer:

true

Explanation:

Randy is concerned about his company’s data security on the Internet. Because cellular signals are not encrypted, he is concerned that the new smartphones given to the sales department will allow a breach. Randy has decided the company needs a more secure way to allow the sales department to connect to the company network over the Internet. What should Randy deploy to allow the sales department to connect to the company network securely over a cellular data signal?

Answers

Answer:

By using a virtual private network (VPN)

Explanation:

If Randy deploys a virtual private network (VPN), it will give the sales department online privacy since VPN encrypt connections whenever the sales department connects to the company network over the Internet. A VPN for the sales department is very necessary to use over a cellular data signal to ensure the department's overall digital defense, and it also has other uses.

P16 Consider the following network. ISP B provides national backbone service to regional ISP A. ISP C provides national backbone service to regional ISP D. Each ISP consists of one AS. B and C peer with each other in two places using BGP. Consider traffic going from A to D. B would prefer to hand that traffic over to C on the West Coast (so that C would have to absorb the cost of carrying the traffic cross-country), while C would prefer to get the traffic via its East Coast peering point with B (so that B would have carried the traffic across the country). What BGP mechanism might C use, so that B would hand over A-to-D traffic at its East Coast peering point?

Answers

Solution :

Considering the following data :

[tex]$\text{ISP B}$[/tex] provides the national backbone to the regional [tex]$\text{ISP A}$[/tex].

[tex]$\text{ISP C}$[/tex] provides the national backbone to the regional [tex]$\text{ISP D}$[/tex].

Each of the ISP consists of one autonomous systems (AS).

[tex]$\text{ISP B}$[/tex] would like to hand over the traffic of C through the [tex]$\text{West}$[/tex] Coast.

The [tex]$\text{ISP C}$[/tex] would like to receive traffic from B's peering point via East Coast.

One way for [tex]$C$[/tex] to force [tex]$B$[/tex] to hand over all of [tex]$B$[/tex]’s traffic to [tex]$D$[/tex] on the east coast is for [tex]$C$[/tex] to  only advertise its route to [tex]$D$[/tex] via its east coast peering point with [tex]$C$[/tex].

which of these stamtemnst correctly descride how to adjust a imange on a slide

Answers

Answer:

To resize an image, just click and drag its edges.

Explanation:

?i really don't understand. I hope I'm correct..

Ryan is installing new flooring in his house. Ryan can install 169 square feet of flooring in 5 hours. How much new flooring can Ryan install in 35 hours?

Answers

Answer:

1183 square feet.

Explanation:

If Ryan can install 169 square feet in 5hours.

Then, he can install times 7 of that in 35 hours since 35 / 5 = 7

So, 169 x 7 = 1183

Do Not Answer If You Are Going To Give Me A Link! DONT WASTE MY POINTS!!
Choi is trying out for a reality show on television. The application requires a self-portrait. Choi is setting up a self-portrait but wants to get her whole body. How might Choi BEST take a self-portrait that looks professional enough to submit?

A.
She could stand in front of a mirror holding her phone to take the photo.

B.
She could hold up the camera and take a selfie pointed down toward her body.

C.
She could use a self-timer to allow herself to get into position for the shot.

D.
She could ask her friend to take a photo of her as she stands against a background.

Answers

Answer:

My answer may be right nor wrong

A.

Answer: D seems like a good answer because she has a background behind her and it's a full body photo so i will say d looks more professional

Explanation:

Whats with the bot spamming customer care numbers...kinda annoying when im trying to help people.

Answers

Answer:

yes

Explanation:

The following if statement tests the rainfall in New York’s Central Park during the months of June, July and August.

if (low <= rain && rain <= high)
System.out.println("Rainfall amount is normal.");
else
System.out.println("Rainfall amount is abnormal.");
It could be replaced with:
I.

if (rain >= low)
{
if (rain <= high)
System.out.println("Rainfall amount is normal.");
}
else
System.out.println("Rainfall amount is abnormal.");
II.

if (rain >= low)
{
if (rain <= high)
System.out.println("Rainfall amount is normal.");
else
System.out.println("Rainfall amount is abnormal.");
}
else
System.out.println("Rainfall amount is abnormal.");
III.

if (rain >= low)
System.out.println("Rainfall amount is normal.");
else if (rain <= high)
System.out.println("Rainfall amount is normal.");
else
System.out.println("Rainfall amount is abnormal.");
I only
II only
III only
(II or III)
I, II or III

Answers

Answer:

II only

Explanation:

In the original code, both conditions of low<=rain and rain >= high must be met for the print message to be executed. This is denoted by the && logical operator.

The code in II does the same thing. It first checks that the low <=rain condition is true; then it goes on to check if the rain >= high condition is true as well before the "normal" print statement can be executed. But if either of the condition is not true, it prints "abnormal" because both conditions must be true.

True/False: On the piano, middle C is located to the left of the 2 black keys in the middle.

Answers

Answer:

um true??

Explanation:

Other Questions
discuss two ways which it can raise awareness What did the constitution of the clergy do? In the 1990s, it was generally believed that genetic abnormalities affected about 5% of a large nation's children. Some people believe that the increase in the number of chemicals in the environment has led to an increase in the incidence of abnormalities, which could have important implications for health insurance companies. A recent study examined 384 randomly selected children and found that 25 of them showed signs of a genetic abnormality.Required:What is the p value? 9. Which ordered pair is a solution of the system of inequalities shown in thegraph? (A.REI.12)32A. (1,0)C. (0, -1)8. (0,1)D. (2,0)Also please dont add a website link I would prefer if you answer it in words or attach a photo straight to it not a file that I have to go to! Thank you if you can do that :) You have a loan for $200,000 at 8.5% annual simple interest. What is your monthly interest payment?a.1,239b.1,311c.1,417d.1,508 What part do humans play in gene flow? ASAP PLAES HELP ME!!! Determine whether each described process is endothermic or exothermic. Wood burns in a fireplace Choose... Ice melts into liquid water Choose... Solid dissolves into solution, making ice pack feel cold Choose... A process with a calculated positive q Choose... A process with a calculated negative q Choose... Acid and base are mixed, making test tube feel hot Choose... Ms. Houston's fifth-grade class of 20 students is going to a museum.The class raises $128 for the trip. Transportation to the museumcosts $5 for each student. The museum sells small fossils for $4each. How many fossils can the students buy with the money theyhave left? What is the smallest organism? vertex of y = x + x - 4x - 4 What event in 2001 triggered major U.S. initiatives to combat terrorism that would define the presidency of George W. Bush?A ) The Hurricane Katrina disaster. B) The Centennial Olympic Park Bombing. C) The involvement of the United States in IraqD) The attacks on the World Trade Center and Pentagon How does the OMB serve the President? Please answer correctly !!!!!!!!!!!!!! Will mark Brianliest !!!!!!!!!!!!!!!!!!!!! What is the domain of the function graphed above?A. {7/2}B. - O C. -2 _< x WILL GIVE BRAINLILESTName three aspects of life in the trenches. How did trenches affect the soldiers? Please help. I WILL REPORT LINKS!!! So, basically it's asking to write an equation of the line that passes through the given points in any form. Also, no, it's not -1x + 2.5 or 1x + 2.5. Don't give me those answers! I tried them and they were wrong. Please help!! y = }(x+6) - 5m=bab= Which wave type could move in the empty space between the Sun and the Earth examine the sample media-based art below. In this photography by George C. Tapan, describe the elements and characteristics used.