surffishin07 surffishin07
  • 17-11-2019
  • Computers and Technology
contestada

Which of the following is a valid JavaSript statement?
a. If (x = 5) x == 2 * x;
b. if (x = 5) x =2* x;
c. if (x == 5) x == 2 * x;
d. if (x == 5) x = 2 * x;​

Respuesta :

wyskoj
wyskoj wyskoj
  • 17-11-2019

Answer:

D

Explanation:

A and B are not valid because you cannot use "=" as a comparator (you must use "==" or "===").

C is not valid because the expression after the conditional is not a statement (it uses "==" instead of "=")

Answer Link
michaelarmstrong1337 michaelarmstrong1337
  • 18-11-2019

It is D if (x == 5) x = 2 * x;​

Answer Link

Otras preguntas

Describe the structure of the government created by the great compromise
****WILL GIVE BRAINLIEST****Even if you dont know answer if you could help explain question to me that'd help Does Merlin’s mist, which does not discriminate be
I don’t know what to do after this
Science please help!!!The shape and _______of a cell is related to its_______Fill in the blank!
Which expression would represent Alison's rate if she traveled 55 miles in t hours? A) 55t B) t/55 C) 55/t D) 1/55 + t
Dean saved 15$ to buy baseball cards. Each pack of baseball cards costs 6$. How many packs can dean buy
How might the development of the internet increase productivity? A) Workers can access social networking sites. B) Businesses have greater access to resources.
If you touch a downed powerline covered or bare, what's the likely outcome
Ella cuida a sus hermanos. Correct Incorrect
Click an item in the list or group of pictures at the bottom of the problem and, holding the button down, drag it into the correct position in the answer box. R