MCQs>IT & Programming>JavaScript>How do you write a conditional statement that will only execute the contained code if variable x has a value 5 of type number?
JavaScript MCQs
How do you write a conditional statement that will only execute the contained code if variable x has a value 5 of type number?
Answer
Correct Answer: if (x === 5) { ... }
Explanation:
Note: This Question is unanswered, help us to find answer for this one