You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### 52. What is the role of event.preventDefault()
794
+
The preventDefault() method is used to stop the default action of an element.
791
795
796
+
E.g., when a user submits a form, the browser sends the form data to the URL specified in the action attribute. In some cases, we may want to prevent this default behavior.
797
+
798
+
### 53. What is the use of JSON.stringify()
799
+
JSON.stringify() method is used to convert a JavaScript object or value into an equivalent JSON string.
0 commit comments