bevacqua / js

:art: A JavaScript Quality Guide

Home Page:https://ponyfoo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparison operators

himanshu244 opened this issue · comments

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
}

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