Js Logical Questions