113 Study Guide - Javascript, Empty String, Operand

3 views6 pages

Document Summary

If we write 10=10, a = 10 or a = a , it will result in a reference error. Double equals (==) is a comparison operator, which transforms the operands having the same type before comparison. An empty string is always converts to zero when comparing a string with a number string with no numeric value is converts to nan (not a number), which returns false. === (triple equals) is a strict equality comparison operator in javascript, which returns false for the values which are not of a similar type this operator performs type casting for equality. If we compare 2 with 2 using ===, then it will return a false value. That is, a = b assigns the value of b to a. Strict equality === checks that two values are the same or not. Value are not implicitly converted to some other value before comparison.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents