nerdexam
Microsoft

98-382 · Question #7

You are evaluating a colleague's code to ensure it meets best practices. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection…

The correct selections are: 1. The characters // are used to mark a single line as a comment. (Yes) 2. totalScore is in the correct format according to standard naming conventions for JavaScript. (No) 3. _score can be used as a variable name. (Yes) 4. switch can be used as a…

Document and Structure Code

Question

You are evaluating a colleague's code to ensure it meets best practices. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Statements: 1. The characters // are used to mark a single line as a comment. 2. totalScore is in the correct format according to standard naming conventions for JavaScript. 3. _score can be used as a variable name. 4. switch can be used as a variable name.

Explanation

The correct selections are: 1. The characters // are used to mark a single line as a comment. (Yes) 2. totalScore is in the correct format according to standard naming conventions for JavaScript. (No) 3. _score can be used as a variable name. (Yes) 4. switch can be used as a variable name. (No)

Topics

#naming conventions#comments#reserved words#variable naming

Community Discussion

No community discussion yet for this question.

Full 98-382 Practice