iska output kya hoga -let x=3=="3", console.log(x);
Answers
Answered by
25
Answer:
let x=3=="3", console.log(x)
Answered by
0
Answer:
let x=3=="3", console.log(x); will display 3 in the console.
Explanation:
A message is sent to the web console using the console. log() method. A single text or one or more JavaScript objects can be used as the message. This function is only available in Web Workers.
- x is a Boolean variable, meaning its value can only be true or false.
- The comparison of integer type 3 and string type 3 equals x.
- If the values of both data types are the same, the value of x is true; otherwise, it is false.
- Because 3 equals 3 in a string, x will equal true.
The console. log() function in JavaScript is used to print any variables that have been previously defined in it, as well as the message which is displayed to the user.
Similar questions