Why do we use return statements? Choose all that apply

A.
Javascript requires functions to have return values.

B.
To return multiple data types simultaneously

C.
To allow a function to give different values depending on input.

D.
So that we no longer have to use console.log();

E.
To save the result of a function in a variable in other functions

Answers

Answer 1

Answer:

A.

Javascript requires functions to have return values.


Related Questions

PROJECT: RESEARCHING THE HISTORY OF THE INTERNET
The Internet has had a profound effect on how we conduct business and our personal lives. Understanding a bit about its history is an important step to understanding how it changed the lives of people everywhere.

Using the Internet, books, and interviews with subject matter experts (with permission from your teacher), research one of the technological changes that enabled the Internet to exist as it does today. This may be something like TCP/IP, the World Wide Web, or how e-mail works. Look at what led to the change (research, social or business issues, etc.) and how that technology has advanced since it was invented.
Write a research paper of at least 2, 000 words discussing this technology. Make sure to address the technology’s development, history, and how it impacts the Internet and users today. Write in narrative prose, and include a small number of bullet points if it will help illustrate a concept. It is not necessary to use footnotes or endnotes, but make sure to cite all your sources at the end of the paper. Use at least five different sources.

Submission Requirements
Use standard English and write full phrases or sentences. Do not use texting abbreviations or other shortcuts.
Make any tables, charts, or screen shots neat and well organized.
Make the information easy to understand.

Answers

E-mail, short for “electronic mail” is one of most widely used forms of digital communication. It can be used from nearly any device, and unlike paper mail, it is delivered nearly instantly. E-mail is used in all strata of society, and has endless possibilities for personal and professional uses.

It can be used to send messages, links, images and files, essentially everyone on the planet who uses computers will use e-mail. It powers business and connects families together across continents, and the best part of all is that it is essentially free. People use e-mail on personal computers, mobile phones, tablets, even on ‘smart’ televisions!

Every e-mail address has an inbox. This is where new messages are deposited. An e-mail message has a status called “unread” which disappears after the e-mail has been opened. A typical e-mail inbox will also have a ‘Sent’ folder for viewing messages that you have sent in the past. It also will have an ‘Outgoing’ folder, where messages stay until they have been fully transmitted. It is also common to have a ‘Drafts’ folder for messages that were started but never sent, and a ‘Spam’ folder, where unwanted marketing messages will usually be directed. You can of course setup your own folders and sort your e-mails however you like .

Pls help computer science I will give brainliest

Answers

Answer:

A driver assists with hardware management.

Hope this helped.

Answer: Hardware Management

Reason: Depends on the driver type

You are the IT administrator for a small corporate network. Over the weekend, another employee in the IT department upgraded some components in the Support workstation. When a Support employee came to work this morning, his computer would not start. In this lab, your task is to troubleshoot the problem and take the necessary steps to get the computer to start. Examine the computer to identify possible problems that would prevent it from coming on. Make sure the power cord between the computer and the power strip is plugged in. Make sure the power supply voltage is set to 115V. Make sure the power supply switch is on.

Answers

Answer:

Explanation:

First, you should make sure the power cable is properly connected to the pc and the wall plug. Next, you need to make sure that the power switch on the PC's power supply is turned on. If the PC still does not turn on, you may want to check if the wall plug is providing electricity. If so, the next step would be to check the inner cables connecting the power supply to the pc and make sure everything is correctly connected.

If you have tried all of this to no avail then the most likely reason is that something is broken. The possible culprits could be bad cables, broken power button, bad power supply, or failed motherboard. You would have to individually test each component to find the culprit.

When you purchase donuts, they come in boxes of 12, so 24 donuts take 2 boxes. All donuts need to be in a box, so if you buy 13 donuts, you'll get 2 boxes with 12 in the first box and 1 in the second. If the integer variable numberOfDonuts contains the positive number of donuts purchased, which of the following will correctly give the number of boxes needed?
a. int numberOfBoxes = 1 + numberOfDonuts / 12;
b. int numberOfBoxes = numberOfDonuts / 12 + numberOfDonuts % 12;
c. int numberOfBoxes = numberOfDonuts / 12;
d. int numberOfBoxes = (numberOfDonuts + 11) / 12;

Answers

Answer:

d) int numberOfBoxes = (numberOfDonuts + 11) / 12

Explanation:

Hope this helps

Assume you are a security professional. You are determining which of the following backup strategies will provide the best protection against data loss, whether from disk failure or natural disaster: Daily full server backups with hourly incremental backups Redundant array of independent disks (RAID) with periodic full backups Replicated databases and folders on high-availability alternate servers Answer the following question(s): Which backup strategy would you adopt? Why?

Answers

Answer: if you have data that is lost then you need to find the things you have deleted and get that data back

Explanation:

Write a C++ program that prints out the following menu for a game (include the line of asterisks (*) on top and bottom). Try to use "endl" and the escape sequences \n, \t in your program.2 *********************************************** Welcome! Please choose a number from the following options: 1. Play the MAD LIBS game! 2. Play the CHOOSE YOUR OWN ADVENTURE game! 3. Exit *********************************************** Q#5: Write a C++ program to print out the following sentences. This is a practice of e

Answers

Answer:

#include <iostream>

using namespace std;

const int NRSTARS=50;

int main() {

 cout << string(NRSTARS, '*') << endl;

 cout << "Welcome!\nPlease choose a number from the following options:" << endl;

 cout << "1. Play the MAD LIBS game!" << endl;

 cout << "2. Play the CHOOSE YOUR OWN ADVENTURE game!" << endl;

 cout << "3. Exit" << endl;

 cout << string(NRSTARS, '*') << endl;

}

The example C++ program that prints the menu and the sentences is shown below:

What is the program

cpp

#include <iostream>

int main() {

   std::cout << "***********************************************" << std::endl;

   std::cout << "Welcome! Please choose a number from the following options:" << std::endl;

   std::cout << "1. Play the MAD LIBS game!" << std::endl;

   std::cout << "2. Play the CHOOSE YOUR OWN ADVENTURE game!" << std::endl;

   std::cout << "3. Exit" << std::endl;

   std::cout << "***********************************************" << std::endl;

   // Printing out sentences

   std::cout << "Q#5: Write a C++ program to print out the following sentences:" << std::endl;

   std::cout << "Sentence 1: Hello, world!" << std::endl;

   std::cout << "Sentence 2: I love programming." << std::endl;

   std::cout << "Sentence 3: C++ is a powerful language." << std::endl;

   return 0;

}

Read more about  program here:

https://brainly.com/question/23275071

#SPJ2

Suppose we want to prove the statement S(n): "If n ⥠2, the sum of the integers 2 through n is (n+2)(n-1)/2" by induction on n. To prove the inductive step, we can make use of the fact that 2+3+4+...+(n+1) = (2+3+4+...+n) + (n+1) Find, in the list below an equality that we may prove to conclude the inductive part.

a. If n ⥠3 then (n+2)(n-1)/2 + n + 1 = (n+3)(n)/2
b. If n ⥠1 then (n+2)(n-1)/2 + n + 1 = (n+3)(n)/2
c. If n ⥠2 then (n+2)(n-1)/2 + n + 1 = (n+3)(n)/2
d. If n ⥠1 then (n+2)(n-1)/2 + n + 1 = n(n+3)/2

Answers

Answer:

The answer is "Choice c".

Explanation:

Please find the complete question in the attached file.

To begin with, allow its principle of the numerically solving to be recognized, three stages are concerned.

1. Topic n=1

2. Suppose n to be true

3. Display n+1 it retains

We have LHS as 2+3+ for the third step now [tex](n+1) = (2+3+.. \& n) + n+1[/tex]

We can now replace the bracket of RHS by [tex]\frac{(n+2)(n-1)}{2},[/tex]as we assumed its valid for n in step 2

if we do that we get

[tex]= \frac{(n+2)(n-1)}{2+(n+1)}\\\\= \frac{(n^2-n+2n-2+2n+2)}{2}\\\\= \frac{(n^2+3n)}{2}\\\\= \frac{n(n+3)}{2}[/tex]

Pls help mark brainliest

Answers

Answer:

I cant answer this.

Explanation:

You need to take another screenshot so we can see the multiple choice.

Is the quote "Stay inside and have water and food ready in case power goes out" a definition of...

A. Thunderstorm
B. Winter storm

Answers

Answer:

winter storm

Explanation:

possibility of a snow-in.

Answer: winter storm

Pls help I will give points

Answers

Answer:

Desktop

Explanation:

Pls help I will give points

Answers

Answer:

Laptop

Explanation:

How does Windows operating system manage the file?​

Answers

Answer:

The OS allows you to organize the contents of your computer in a hierarchical structure of directories that includes files, folders, libraries, and drives. Windows Explorer helps you manage your files and folders by showing the location and contents of every drive, folder, and file on your computer.

How does critical thinking relate to peer
assessment ?

Answers

Answer:

It both helps you understand very well on whatever assessments reading you do. You think and you pay 100% to your work and get done with it. You think through whatever you've been working on.

Pls help me awnser this I will give points

Answers

Answer:

first one is "int" second one is "string" and third one should be "float"

Explanation:

not sure if the first one is right but try this.

Devising a plan to solve a problem or perform a task using a set of step by step instructions is called:
Running a program
Writing an algorithm
Creating syntax
Interpreting instructions

Answers

d becaus ig is following INSTRUCTIONS

What do you call the parts of the motor that do not move?.

Answers

Answer:

The stator..?

Explanation:

Stators are the stationary parts of motors. Dunno if I'm right lol

An articulated robot has a T-type wrist axis that can be rotated a total of 2 rotations (each rotation is a full 3600 ). It is desired to be able to position the wrist with a control resolution of 0.250 between adjacent addressable points. (a) Determine the number of bits required in the binary register for that axis in the robot's control memory. (b) Using this number of bits, what is the actual control resolution of the joint

Answers

T pose my guy cuz my friend here Justin is next to me

In order to ask for user for input in store the results as a stream, you should use the function. Readline, readlnt, string, algorithm

Answers

Answer: String

-DoggyMan5

When a laptop internal device fails, what three options can you use to deal with the problem?

Answers

Answer:

I. Return the laptop to a service center for repair.

II. Substitute an external component for the internal component.

III. Replace the internal component.

Explanation:

A laptop can be defined as a small portable computer that is embedded with a keyboard and light enough to be placed on the user's lap while working.

When a laptop internal device fails, the three options which you can use to deal with the problem are;

I. Return the laptop to a service center for repair: a computer technician at the service center would troubleshoot and fix the problem i.e the internal device that failed.

II. Substitute an external component for the internal component: the user could swap a component found on the outside of a laptop with an internal component provided that they are compatible with each other.

III. Replace the internal component: if the failed internal component is a customer replaceable unit (CRU), you can easily replace it.

Which save as element allows a user to save a presentation on a computer?

Answers

Answer:

This PC

Explanation:

Got it right

Answer:

Look at the attached file for the answer, I'm correct as you can see.

Explanation:

In the binary system, 1 and 0 are not known as digits. Instead, they are called
bits
switches
flow
variables
decimals​

Answers

Answer:

Variables

Explanation:

I hope it helps

Answer:

C variables

Explanation:

What type of memory disappears when you turn your computer off? CPU, RAM, ROM or Storage​

Answers

Answer:

RAM

Explanation:

Hey,

The answer to this is ram. Ram were your most important info that needs to be read right away is stored when your not using your computer to save power your ram is shut down.

Hope this helps have a great day.

-scav

You have searched a database to locate US cities with population counts above 1 million people. You need to present the results to the class. Which of these describes the process you should use to accomplish these tasks?

options

enter data into a form and present it to the class

present the table you used to search for cities with more than 1 million people

run a query and create a report from the datasheet

run a query and present the datasheet to the class

Answers

Answer:

Run a query and create a report from the datasheet.

Explanation: creating a report will give a easy to understand explanation of all the data you have collected.

Answer:

the answer is C

the next one is B

Explanation:

Pls help I will thx and give points

Answers

Answer:

Desktop

Explanation:

A tablet and smartphone dont have enough storage like a desktop, so they would edit very efficiently

A desktop. A desktop has more advanced features than a tablet or smartphone. More programs are available and storage is more widely available as well

Which of the following activities is permissible for IT professionals in the conduct of computer access and authorizations?

viewing explicit content on a company computer

posting updates to social media networks during slow periods at work

using another company’s copyrighted images for the company’s website

using the company’s e-mail software to send work-related e-mails

Answers

Answer:

D

Explanation:

Answer: A, B, C, D

Explanation:

A keyboard would be considered _____. Select 2 options.

Answers

Answer:

What are the 2 options?

Explanation:

Answer:

Do you have the options?

Explanation:

How does the pay for many Science, Technology, Engineering, and Mathematics workers compare to the overall median for all careers? It is far lower than the overall median. It is far higher than the overall median. It is slightly higher than the overall median. It is about the same as the overall median.

Answers

Answer:

B

Explanation:

It just is

Answer:

B is correct

Explanation:

Identify advantages that web designers gained by
switching to divs and CSS for page layout. Check
all of the boxes that apply.
Divs describe the type of content they
contain.
Divs can be styled to any shape, size, or
location on a page.
Divs can contain a combination of tagged
content.

Answers

Answer:

B Divs can be styled to any shape, size, or location on a page.

C Divs can contain a combination of tagged content.

Explanation:

How does a Red Team vs Blue Team exercise help an organization

Answers

Answer:

Kindly check explanation

Explanation:

The Red team VS Blue team exercise can be explained as a simulated form of exercise or challenge which is intentionally triggered by an organization in a bid to test and access its level of security in other to stay in top of an actual external threat that might be perpetrated. In the simulated exercise, the red team act as the attacker by deploying several forms of threats which are used by actual attackers. The blue team on the other hand act as guard to repel tune attack. All these helps organizations to detect possible weaknesses and loopholes in their system which they can improve on in other to promote system and information security.

Write a program that reads a file containing text. Read each line and send it to the output file, preceded by line numbers. If the input file is Mary had a little lamb Whose Fleece was a white as snow. And everywhere that Mary went, The lamb was sure to go! then the program produces the output file /* 1 */ Mary had a little lamb /* 2 */ Whose Fleece was a white as snow. /* 3 */ And everywhere that Mary went, /* 4 */ The lamb was sure to go! The line numbers are enclosed in /* */ delimiters so the program can be used for numbering Java source files. Prompt the user for the input and output file names.

Answers

#!/bin/bash

INPUT_FILE=$1

count=1

while IFS= read -r line; do

echo $count - $line

count=$(($count + 1))

done < $INPUT_FILE

Other Questions
Please help me ASAP! ------------------------------------------------Select the correct answer.Which description is most comparable to the convection currents that exist in Earths mantle?A. hot air rising and cold air sinkingB. cold water rising and hot water sinkingC. the Sun rising and then setting 14 hours laterD. random distribution of temperaturesE. hot air sinking and cold air rising i need help please thank you! Behavior patterns which are already present at birth are called ____ At the City Zoo, of the zoo is set aside for the monkeys. There are 4 different monkeys, eachwith an equal-sized area. What fraction of the zoo is set aside for one monkey area?Can someone plz answer me... A.1/4 B.4/15C.1/13D.1/36 What is the y-coordinate of the solution to this system of equations?5x-8y=13x+6y=-21 In your own words, summarize the following: TheCompromise of 1820 and 1850, The Dred Scott v. Sandfordcase as well as the Kansas Nebraska Act.In addition to this, you will summarize:the Election of 1860, as well as the events that occurred asa result of the election. Be sure to include how both theNorth and the South viewed the election of AbrahamLincoln. How does Takei's discussion of the 442nd contribute to themeaning of the text? What are facts about complementary angles? I NEED ASAP In this model of the rock cycle, A represents ____ rock and B represents the process of _____ Which two items show that the Mesopotamian civilization was complex? A the Code of Hammurabi B irrigation canals C agricultural tools D cuneiform E use of farm animals a factory can fill 25 containers of pizza every minute. All of the containers are the same size. How many minutes will it take the machine to fill 900 container? if x=6.473, and y=7.196, why does my dad still not love me? Pls help extra points and mark brainlist The circumference of circle P is 800 mm, the circumference of circle Q is 200 cm, and the circumference of circle R is 4 m. What is the sum of the distances around each circle? A poem with 10 stanzas. Plsss someone help me Help please I will give brainliest This is for today I have until tonight to finish someone help me plsss!!! Great Chicago fire essay A school's service club is sponsoring a dance in theschool gym to raise money for a local charity. The expenses will be$625, and tickets to the dance will cost $8.50. The club members hopeto raise enough after expenses to donate at least $1000 to the charity.Write an inequality that describes the situation. If the club memberssell 195 tickets, will they meet their goal? Which type of energy is the flow of electrons from a negative to a positive?