
So first I use alert() to greet the user, said I wanted to introduced myself, and told the user of a number I created using variables and JavaScript algorithms. Then I would use document.write() to write down the introduction about myself on the webpage. Then I have a few buttons below that to showcase the other code required in this lab. The first buttons ask the user whether he/she want to provide their name, then there will be another button that prompts the user to enter their name. After the user answered their name, there will be a greeting to the user and ask the user to see more by clicking another button, but there aren't actually any more to it, it's just to show the different type of possibilities.
No comments:
Post a Comment