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

What event occurred in the byzantine empire in the late fifteenth century that limited europe's access to spices from the east?
A weight-training program that gradually increases the resistance lifted relies on the ________ principle to build strength
can fish sleep? (and if so how do they do it)
Rachel and marc were given the information shown below about the bacteria growing in a petri dish in their biology class. rachel wants to model this information
what is the answer to 35r−21<−35r+19
When coding a craniectomy/craniotomy procedure, it is not uncommon that additional ____________is required?
Muscle imbalances can be caused by lack of core strength and poor training techniques. which concept causes the biceps femoris and piriformis to compensate in a
What types of intellectual disability are described by the term cultural-familial?
Which of the following is less than 25%. 3/4. 1/2. 5/8. 1/8
The new social order of the gilded age:prompted public discussion of class differences and debate among workingmen and farmers over political economy