bevacqua / js

:art: A JavaScript Quality Guide
https://ponyfoo.com
MIT License
2.93k stars 502 forks source link

Comparison operators #29

Closed himanshu244 closed 6 years ago

himanshu244 commented 6 years ago

Hi sir, i am facing the issue at comparison operators. Comparison operators are not working properly i a function.

alert(1>2); //output is true //but function a(){ alert(1>2); //output is null showing alert but not have any value }

bevacqua commented 6 years ago

You're missing a return statement? Not sure I understand your question 🤷‍♂️