Quiz: Organizing Code
Try this self-check quiz to test your knowledge!
Why would we organize code using Functions?
What command is used to declare a Function in JavaScript?
deffunctionfncsubroutinefunction is used to declare a Function in JS.What two kinds of objects can go between the parentheses of a Function declaration?
What command sends data back to the code that called the Function?
responddispatchupdatereturnreturn command sends data back to the code that called the Function.True or False: JavaScript parameters can have default values specified in the Function declaration?
What command is used to declare a local variable in JavaScript?
varlocalletloclet is used to declare a local variable in JS.What is do we call the context of the code (including all known object references) as it is executed by the interpreter?
True or False: Variables declared with let can be used outside of the code block where they are declared?
let do not exist outside of the code block where they are declared (although they can be used in child code blocks of the block where they are declared).How are code blocks identified?
{ }( )[ ]< >{ }) indicate a code block in JavaScript.Visit Quiz Online
The quiz on this page has been removed from your PDF or ebook format. You may take the quiz by visiting this book online.