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
dsp73
3 years ago
12

BRAINLIEST!!! 20 PNTS!!!! HELPP!!!

Computers and Technology
1 answer:
12345 [234]3 years ago
7 0

Answer:

A) Parentheses

Explanation:

Conditional statements control behavior in JavaScript and determine whether or not pieces of code can run.

There are multiple different types of conditionals in JavaScript including:

If” statements: where if a condition is true it is used to specify execution for a block of code.

“Else” statements: where if the same condition is false it specifies the execution for a block of code.

“Else if” statements: this specifies a new test if the first condition is false.

Now that you have the basic JavaScript conditional statement definitions, let’s show you examples of each.

If Statement Example

As the most common type of conditional, the if statement only runs if the condition enclosed in parentheses () is truthy.

EXAMPLE

if (10 > 5) {

     var outcome = "if block";

}

​outcome;

OUTPUT

"if block"

Here’s what’s happening in the example above:

   The keyword if tells JavaScript to start the conditional statement.

   (10 > 5) is the condition to test, which in this case is true — 10 is greater than 5.

   The part contained inside curly braces {} is the block of code to run.

   Because the condition passes, the variable outcome is assigned the value "if block".

You might be interested in
What is a benefit of naming cells and ranges?
Sholpan [36]

Answer:

Using names in formulas makes it clearer to see what the function is.

Explanation:

Just answered this in my online course.

8 0
3 years ago
Read 2 more answers
What is the output of this line of code?
zzz [600]
The first one
“hello” + “goodbye”
6 0
3 years ago
Read 2 more answers
Take the program written last weekend that creates a deck of cards, shuffles them, and then lists them out. Modify the program t
Mars2501 [29]

Answer: Here, you might need to make some changes to format it how you'd like, but it gives you the desired output :)

Explanation:

import random as chunky

def play():

   hand1, hand2 = [], []

   for n in range(5):

       hand1.append(chunky.choice(cardList))

       hand2.append(chunky.choice(cardList))

   print("Hand 1: ", end= "")

   for n in hand1:

       print(n, end= " ")

   print()

   print("\nHand 2: ", end= "")

   for n in hand2:

       print(n, end= " ")

   print()

   while "A" in hand1:

       hand1[hand1.index("A")] = 11

   while "A" in hand2:

       hand2[hand2.index("A")] = 11

   print(f"\nHand 1 Total: {sum(hand1)}  Hand 2 Total: {sum(hand2)}")

   print("\nHand 1 WINS!") if sum(hand1) > sum(hand2) else print("\nHand 2 WINS!")

cardList = [1,2,3,4,5,6,7,8,9,10,"A"] #Skipped King, Queen, and Jack. Did not know how to incorperate them

chunky.shuffle(cardList)

looper = True

while looper == True:

   play()

   x = input("\n\nWould you like to go again?(y/n): ")

   if x.lower() == "n":

       quit()

8 0
3 years ago
For some people , alcohol can cause an uncontrollable blank of the eyes , making good vision almost impossible
ss7ja [257]
The statement above wil be completed.

For some people, alcohol can cause an uncontrollable vibration to the eyes, making good vision almost impossible. This vibration is called nystagmus or the eyes getting dizzy and shaky. This nystagmus occurs when a person drinks too much and reaches his limit in alcohol intake.
7 0
3 years ago
_______________is the difference between the darkest and lightest areas of the <br> image
pshichka [43]
Contrast is the difference between the darkest and lightest areas of the image.
8 0
3 years ago
Other questions:
  • What’s of the following can be used to visually represent information similar to diagrams format painter Helens smart are a clip
    8·1 answer
  • IPv6 is being developed in order to:
    15·1 answer
  • For a string s ∈ {0, 1} let denote the number represented by in the binary * s2 s numeral system. For example 1110 in binary has
    10·1 answer
  • Choose the correct term to complete the sentence.
    10·2 answers
  • In the space provided, analyze the pros and cons of becoming a member of an artistic guild. Your answer should be at least 150 w
    12·1 answer
  • What is the output of this line of code
    11·2 answers
  • Select one among the the main categories of computer software, which one is not a category
    6·1 answer
  • I need someone to explain gor me python coding!
    9·1 answer
  • Which tabs are expandable and collapsible
    14·1 answer
  • I just need question 2 answered. Someone please help I’m on a test!
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!