- Show an alert with the message "Welcome to our site!".
- Declare a variable named name and assign it the value "Moon".
- Create a variable called age and assign it the value 25.
- Define a salesNumber variable and assign it a value of 50.
- Define an availableBalance variable and assign it the value 1000.
- Display an alert with the text "Error! Fill in all the fields".
- Declare a variable called errorMessage, and assign it the value "Error! Fill in all the fields". Now display an alert with the value of the errorMessage variable.
- Use a prompt to ask for the user's name and store it in the name variable.
- Ask the user to enter their age using a prompt and store it in the age variable.
- Now, if the age is greater than or equal to 18, display an alert with the message "You can get your license!".
fabiomen10 / challenge_alura-time_of_practice_01 Goto Github PK
View Code? Open in Web Editor NEWPractise programming logic, including concepts such as variables, conditionals (if), alert, prompt.