Write a program using prompt function to take input of age as a value from the user and use alert to tell him if he can drive!
In Q1 use confirm to ask the user if he wants to see the prompt again
In the previous questions, use console.error to log the error if the age enter is negative.
Write a program to change the url to google.com (Redirection) if user enters a number greater than 4.
Change the background of the page to any colour based on user input through prompt.
Answer