Javascript Interview Questions | Javascript type conversion and conditionals