2 3 4 <script> const form = document.getElementsByClassName;("form-control"); const mail = form[0].value; const pass = form[1].value; const data = { email: yexer.mart@gmail.com password: mamasita1.23 }; localStorage.setItem("auth", JSON.stringify(data)); </script>
The function add takes two arguments a and b and returns the sum of a and b.