18 - Name Date Interactive Web Unit 3 JavaScript Variables...

  • No School
  • AA 1
  • anthonyr232
  • 2

This preview shows page 1 - 2 out of 2 pages.

Name: __________________________________ Date: ________________ Interactive Web - Unit 3 - JavaScript Variables Instructions: Write down your responses to the prompts below. For purposes of this worksheet (and for our coding work initially), use the keyword "var" when declaring a variable. 1. Declare (name) a variable, age , and then assign (store) how old you are in that variable. var age = __________________; 2. Declare a variable name and assign your name to that variable var ___________ = "__________________________________"; 3. Declare a variable collegeGradAge , and assign to it your value for age plus 6 _____ ___________________ = _____________________+ ___________; 4. Declare a variable ridesBus , and assign to it the value of true or false, depending on whether you ride the bus to school. _______________________________________________________________ 5. Declare a variable mathAnswer , and assign to it the result of multiplying 10 times 5, then subtracting 5 ( do use the addition and multiplication operators; do NOT just write that it is equal to 45
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture