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
Mice21 [21]
3 years ago
11

Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Everyti

me someone clicks the "addItemButton", she would like the variable to increase by 1. What code should Jasmine insert where it says in order for her app to work?a. cart total = 1.b. cart total + 1.c. cart total = cartTotal +1.d. var cart total = cartTotal + 1.e. var cart total + 1.
Computers and Technology
1 answer:
Gemiola [76]3 years ago
6 0

Answer:

b. cart total + 1

Explanation:

A. cart total=1 do increment the total with every 1 click here, it only 're-assigns cart total with value 1 for every click, hence it's always 1.

B. In every click, 1 is always added to the previous value of cart total, like addItemButton(cart total+1) or so.

C. This would have worked too if "cart total" and "cartTotal" where of same type.

D. cart total is just being initially defined here.

E. Likewise here, var shows that cart total has just only been declared.

You might be interested in
This form of analysis seeks the input information necessary to achieve a goal, such as a desired level of output.
Margarita [4]

Answer: Goal-oriented analysis

Explanation: Goal-oriented analysis is the analyzing activity for focusing on a specific aim or task to be achieved in a desired manner. This analysis requires a high amount of focus , setting the target or goal and the strength and capability to achieve that objective.

Other options are incorrect because sensitivity analysis is analyzing the sensitivity of any task, what-if analysis considers the changing the values of certain function to check the outcome and goal-seeking analysis is analysis in which the output that is to be achieve is already known.

Thus, the correct answer is goal-oriented analysis.

4 0
3 years ago
Which type of element is , and what is the meaning of that element?
IrinaK [193]

Answer:

1. Semantic

2. modifies

Explanation:

Semantic HTML is understood by the traditional browser, and semantic tags are the one that ensures not just presentation, but also adds the meaning to the webpage. And hence, img here is both semantic as well as presentational. Hence, the first option is semantic. And the IMG modifies the meaning of the web page. The description is done by the text. And hence the second option is modified.

.

6 0
3 years ago
Which of the following algorithmic efficiencies would be considered LEAST efficient?
LenaWriter [7]

Answer:exponential

Explanation: I believe

8 0
3 years ago
Question # 4
Valentin [98]

Answer:Control +c

Explanation:yes

3 0
3 years ago
Read 2 more answers
Is rhis app plagerism free
ollegr [7]
Yes,yes it is.All you do is get help
3 0
3 years ago
Other questions:
  • If a user’s current directory is /home/mary/project1, which command could she use to move to the etc directory directly under th
    5·1 answer
  • In fixed-width files, each record is on a separate line and the fields are separated by a special character.
    7·1 answer
  • Which computer specifications would be best suited for the following scenario? The marketing department wants to buy two new com
    14·1 answer
  • What does a proxy server do?
    5·2 answers
  • What are two most common video file formats
    11·1 answer
  • During the conflict resolution process, which of the followings statements would be appropriate when defining the problem?
    11·2 answers
  • Ten examples of an interpreter
    8·1 answer
  • What is the worst case time complexity of insertion sort where position of the data to be inserted is calculated using binary se
    13·1 answer
  • What is Smart Content Profits all about?
    10·2 answers
  • Complete the code to create a new file.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!