Assignment 3: Exploring Variable and Input
Description
Variables play an important role in programming as they provide the ability to store information. Variables can be assigned their values from information such as 12, "Title", other variables or even functions. Variables can be used to store user input which process to perform some task.
Task
Complete ExploringVariable&InputI. Attach with +Add Files.
Questions
1) What is the purpose of a variables? Variables are used to replace data.
2) Compare and contrast alert and prompt. Alert has no typeing area when it pops up only words. In Prompt It allows a textbox which use to see what they typed
Exit Homework
Create a function changeBackgroundImage() that prompts the user to enter the name of an image. Store the users responses in variable, imgBK and set the documents body to the background image stored in the variable. Call changeBackgroundImage() when the pages loads.