30 Answers to Review Questions. “Digital Media Primer” Yue-Ling Wong
C. takes arguments
D. does not take arguments
E. It is not possible to tell whether or not it returns a value.
F. It is not possible to tell whether or not it takes arguments.
12. sum = addTogether();
By looking at the previous statement, you can tell that addTogether() ______.
13. addTogether(2,5);
By looking at the previous statement, you can tell that addTogether() ______.
A. definitely returns a value
B. may not return a value
C. takes arguments
D. does not take arguments
E. It is not possible to tell whether or not it returns a value.
F. It is not possible to tell whether or not it takes arguments.
14. addTogether();
By looking at the previous statement, you can tell that addTogether() ______.
A. definitely returns a value
B. may not return a value
C. takes arguments
D. does not take arguments
E. It is not possible to tell whether or not it returns a value.
F. It is not possible to tell whether or not it takes arguments.
15. JavaScript is a ______ language.
16. The statement in JavaScript ends with an optional ______.
A. colon ( : )
B. semicolon ( ; )
C. closing parenthesis ( ) )
D. closing curly brace (})
17. True/False: JavaScript syntax is case-sensitive.
18. Which of the following is a valid variable name in JavaScript?
19. To declare a variable in JavaScript, you use the keyword ______.
20. To define a function in JavaScript, you use the keyword ______.