pencil-icon
Build your own quiz

Computers

Image

KA JS Functions

307
plays

7 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Let's say you defined a function called startTheParty in your program. What line of code would call that function?
    startTheParty;
    startTheParty();
    var startTheParty = true;
    var startTheParty();
  • 2. Multiple Choice
    30 seconds
    1 pt
    You want to define a function for drawing houses and then use it to draw multiple houses. Where should you define that function?
    At the beginning of the program, before you call it.
    Right after you call it.
    At the very end of the program.
    It doesn't matter one bit!
  • 3. Multiple Choice
    30 seconds
    1 pt
    Which of these lines of code correctly define a function?
    var dropTheBeat = function() [ ];
    dropTheBeat = function() { };
    var dropTheBeat = function() { };
    var dropTheBeat = function { };
  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?