jsTasks.md - brainchildservices/curriculum GitHub Wiki

Tasks

  1. In one word, if it is enclosed in quotation marks, what is it?
  2. Create a variable called carName, assign the value Volvo to it.
  3. This statement...userName = "buddy5000";...is correct only if the variable has already been ______.
  4. Declare a variable without defining it. Then, in a second statement, assign it a string. (You've learned only one rule for naming variables so far, so it's the only one I'll hold you to.)
  5. Write a program to declare an integer ?
  6. Write a program to access an integer & assign value to an integer ?
  7. Write a program Swap variable values using a temporary variable.
  8. Write a program Swap variable values without a temporary variable.