Which of the following type of variable is visible only within a function where it is defined?
A. global variable
B. local variable
C. Both of the above.
D. None of the above.
查看答案
Which of the following is true about variable naming conventions in JavaScript?
A. JavaScript variable names are case sensitive.
B. JavaScript variable names should not start with a numeral (0-9).
C. Both of the above.
Which of the following is correct about JavaScript?
A. JavaScript is a lightweight, interpreted programming language.
B. JavaScript has object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages.
C. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.
D. All of the above.
What is the symbol(s) to comment out one line in JavaScript?
A. //This is a comment
B. **This is a comment
C. %% This is a comment
D. ** This is a comment **
Which of the following is a valid type of function javascript supports
A. named function
B. anonymous function
C. Both of the above
D. None of the above