Login to your W3 Schools Spaces account and open your project4.html file.
Create 2 variables.
Add a string that contains an email address, to the first variable.
In the 2nd variable, use the indexOf() function to find the index position of the @ symbol in the first variable.
Use an alert() function to display the result of the indexOf() function.
Create 2 More variables where each of them contain a text STRING that has a number in them.
Use parseInt() to get a number value out of each of the variables, and then assign each of them, to a new variable.
Use the alert() function to display the if the two new variables hold real numbers - use the isNaN() function to do this.
Take all the code from steps 6-8 and place it inside a custom function called 'checkForNumbers'
Call checkForNumbers(), with the onclick event handler applied to the button with the ID of 'butt'. Use an annonymous function to apply the event handler.
Now go back to your course and review Chapter 6 of the Javascript Foundations StudioWeb course. Watch it AGAIN if you have already watched it.