What is the difference between event.preventDefault() and event.stopPropagation()?
stopPropagation cancels form submission
preventDefault stops the browser's default action (such as following a link); stopPropagation stops the event bubbling to ancestor elements
They are identical
preventDefault stops bubbling