Ad
  • Custom User Avatar

    Wow, nice and elegant aproach, but you should use '===' instead of '==' to compare left and right as we intend to compare their numerical value so including type aswell ( in your case "false" would be equal to "0" etc ), and I personally am not a fan of using vars ( "let" and "const" would be more elegant )