Last active
November 20, 2020 10:58
-
-
Save nickheal/8612a17cc83ba64ac588f8eb1daf4856 to your computer and use it in GitHub Desktop.
Clear code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function submitForm(name, telephone, email) { | |
const requiredFields = name && telephone; | |
if (!requiredFields) { | |
showAlert(); | |
return; | |
} | |
postForm(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment