🧩 Tricky JavaScript Equality Challenge: Can You Solve It? 🧩? #coding #codewithkg

preview_player
Показать описание
Dive into a mind-boggling JavaScript equality challenge! Test your skills and see if you can solve this tricky problem. Perfect for sharpening your coding prowess.
Рекомендации по теме
Комментарии
Автор

2 == 2 == 2 == 0
True(1) == 2 == 0
False(0) == 0
*True*

So the correct answer is "True"

ravitejanarkedamilli
Автор

We need these type of tricky questions more from you sir on javascript

sairamkaviti
Автор

anna me shorts chsi answers chepinapudu verey level feel good havta anna thank you verey much 💌

saitejabommali
Автор

thanks sir for uploading this type of tricky question😊 We need more question sir 🎉

Reddy_kesava
Автор

Thank you anna. For sharing such tricky questions😊

LeonRev
Автор

Thank u sir these are very helpful for us to build logical thinking

yogeshreddy.c
Автор

Before ans is false (2=2=2) then false==0 ie 0=0 the ans =true

maheshdurishetti
Автор

(True and fase are considered o 1and 0 )
(2==2==2==0)
2==2 =true consider to 1
True(1) ==2 false consider to 0
False(0) ==0 true consider to 1

Sunilvarada
Автор

Please keep Posting this kind of videos anna, we will help to reach to as many people by liking and subscribing your channel ❤

DhanushTherealworld
Автор

True
Better to use 0 or 1 for Boolean values instead of using True or false for these type of questions

KhajaAyazShaik
Автор

Finally 0=0 ., true and thanks for your videos amd expecting more

loke
Автор

False,

The expression `console.log(2 == 2 == 2 == 0)` evaluates to `false`. Here's why:

1. `2 == 2` evaluates to `true`.
2. `true == 2` is then evaluated. In JavaScript, `true` is coerced to `1` when compared to a number. So, `1 == 2` evaluates to `false`.
3. `false == 2 == 0` is next.
- `false == 2` evaluates to `false` because `false` is coerced to `0`, and `0 == 2` is `false`.
- Finally, `false == 0` evaluates to `true` because `false` is `0`.

However, the expression `false == 0` would be the final step if we didn't have further comparison. But the initial evaluation already resulted in `false`.

Therefore, `console.log(2 == 2 == 2 == 0)` outputs `false`.

msjagadeesh
Автор

Superr sir inka javascript react meeda videos cheyandi

manojkumarparuchuri
Автор

True cause previous step is false means zero then 0 == 0 True

DheerajKumar-ykyl
Автор

Thanks for your videos this type of videos helpful for job aspirants.

ashok