Answers for "number and type operators in javascript"

0

number and type operators in javascript

var x = 2;
var y = "2";
(x == y)  // Returns true since the value of both x and y is the same

(x === y) // Returns false since the typeof x is "number" and typeof y is "string"
Posted by: Guest on July-05-2021

Code answers related to "number and type operators in javascript"

Browse Popular Code Answers by Language