choose the correct statement which depicts the difference between "==" and "==="?
Attachments:
Answers
Answered by
0
Answer:
” ==” only compares values and “===” compares values and type
Explanation:
Answered by
0
Answer:
The correct answer is option (b).
Explanation:
The major distinction between the "==" and "===" operator exists that once compares variable by creating type correction e.g. if you reach a number with a string with numeric literal, == permits that, but === doesn't permit that, because it not just checks the value but also the kind of two variable if two variables are not of the exact type "===" return false, while "==" return true.
Therefore, option (b) is the correct answer.
#SPJ3
Similar questions
Math,
1 month ago
Social Sciences,
1 month ago
Math,
3 months ago
Business Studies,
3 months ago
Chemistry,
10 months ago