Computer Science, asked by rajnikantdubey3468, 2 months ago

x=3=="3"; console.log(x); output

Answers

Answered by legendsword17
0

Given x=3=="3"

x is a variable

var x = 3 is equal to three "number" displays 3 in the console.

Answered by dreamrob
0

The output of the given program is true.

  • This program is written in Javascript.
  • x is a boolean variable ie the value of x is either true or false.
  • x is equal to the comparison of integer type 3 and string type 3
  • If both data types' value is the same then the value of x is true and otherwise, it is false.
  • 3 is equal to 3 in string thus, x will be equal to true.
Similar questions