Compare ES 5 and ES 6. Write a code in JavaScript to validate the email address entered by the user (check the presence of “@” character. If this character is missing, the script should display an alert box reporting the error and ask the user to reenter it again).