JavaScript Comparison Operators

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Less Than Operator

< The less than operator returns true if the left operand is less than the right operand. x < y

Less than or equal operator

<= The less than or equal operator returns true if the left operand is less than or equal to the right operand. x <= y

Equality

== The equality operator converts the operands if they are not of the same type, then applies strict comparison. If both operands are objects, then JavaScript compares internal references which are equal when operands refer to the same object in memory. x == y

Strict Equality

=== The identity operator returns true if the operands are strictly equal with no type conversion. x === y

Greater than operator

> The greater than operator returns true if the left operand is greater than the right operand. x > y

Inequality

!= The inequality operator returns true if the operands are not equal. If the two operands are not of the same type, JavaScript attempts to convert the operands to an appropriate type for the comparison. If both operands are objects, then JavaScript compares internal references which are not equal when operands refer to different objects in memory. x != y

Strict Inequality

!== The non-identity operator returns true if the operands are not equal and/or not of the same type. x !== y


Kaugnay na mga set ng pag-aaral

Patho Preview Quiz 13, 7, Quiz Eleven, Structure and Function of GI, Path Exam 2, Patho Ch 46 Skin Disorders, Unit 7 patho, GI Quiz, Exam 3, Chapter 29, Patho Exam 5, Final Review Ch 18, Exam 4 patho chapter 13, Quiz #7 & 8: Chs 29, 30, 32, 33, Patho...

View Set

Cardiac Output and Venous Return

View Set

Final Exam Study Guide: Principles of Visual Communication

View Set

Chapter 8: Emergency care, First aid, and Disasters

View Set

US Food & Nutrition Assistance Programs

View Set

Четвёртый стрим--цитаты

View Set

Entrepreneurship - Q2 -Unit 3 Optimizing Operations

View Set

Lesson 7: Cultural diversity in making a living and social life

View Set