Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x = 10, y = 10;
- if (x == y) {
- console.log('x == y');
- }
- if (x == 10) {
- console.log('x == 10');
- }
- if (x == '10') {
- console.log('x == 10 (texto)');
- }
- if (x === y) {
- console.log('x === y');
- }
- if (x === 10) {
- console.log('x === 10');
- }
- if (x === '10') {
- console.log('x === 10 (texto)');
- }
- x = 11, y = 12;
- if (x != y) {
- console.log('x != y');
- }
- if (x != 10) {
- console.log('x != 10');
- }
- if (x != '10') {
- console.log('x != 10 (texto)');
- }
- if (x !== y) {
- console.log('x !== y');
- }
- if (x !== 10) {
- console.log('x !== 10');
- }
- if (x !== '10') {
- console.log('x !== 10 (texto)');
- }
- x = 11, y = 10;
- if (x > y) {
- console.log('x > y');
- }
- if (x > 10) {
- console.log('x > 10');
- }
- if (x >= y) {
- console.log('x >= y');
- }
- if (x >= 10) {
- console.log('x >= 10');
- }
- x = 9, y = 10;
- if (x < y) {
- console.log('x < y');
- }
- if (x < 10) {
- console.log('x < 10');
- }
- if (x <= y) {
- console.log('x <= y');
- }
- if (x <= 10) {
- console.log('x <= 10');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement