Question: what is the difference between return true and return false in javascript?
Answer: Other more obvious general purposes for returning true or false as a result of a function are because they are expected to return a boolean. Your code makes no sense, maybe because it's out of context. ... The return false will return false to the click-event.