Respuesta :
Answer:
(b) false
Explanation:
Given
The above code
Required
The expected output
First, variable number is declared as integer and then initialized with 10
Next, the === compares the integer 10 with string "10"
10 and "10" are different type and === will return true if the compared values and/or variables are of the same type.
Since 10 and "10" are different, the expected output is false
The output of the following JavaScript code is false.
Let's write the code appropriately,
functioncomparison() {
int number = 10;
if (number= = ="10")
return true;
else
return false;
}
A function functioncomparison() is declared.
Then the integer number is assigned as 10.
The conditional "if" says if the string 10 is equals to the integer number 10.
The triple equals signs(===)check for the type and the actual value.
The string "10" and integer 10 are not the same type. "10" is a string and 10 is an integer.
Therefore, the output of the code will be false.
learn more about JavaScript conditional here: https://brainly.com/question/17115445?referrer=searchResults