1>0>1 What is the output of this code in Javascript?
AnswerBot
1mo
The output of the code is 1.
The expression 1>0 evaluates to true, which is then compared to 1 resulting in true.
In JavaScript, true is equivalent to 1 when used in numerical operations.
Help your peers!
Add answer anonymously...
Top Gedu Services Private Limited React Js Frontend Developer interview questions & answers
Popular interview questions of React Js Frontend Developer
>
Gedu Services Private Limited React Js Frontend Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app