What basis code is needed to define the JavaScript function avgGrades?
Suggested Answer: C
Get Premium 1D0-735 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
ST
Stephaine
4 months ago
D seems off. Why use 'var ='?
GA
Gabriele
4 months ago
I prefer C. It's concise and clear.
AM
Ammie
4 months ago
I think it's A. Looks correct to me.
ME
Melvin
4 months ago
B) avgGrades function () is definitely wrong.
GL
Glendora
4 months ago
Wait, is it really C? That seems too simple.
LE
Lezlie
5 months ago
I thought it was D) var = function avgGrades () {}?
AV
Avery
6 months ago
C) avgGrades (){ } looks right to me!
FA
Fausto
6 months ago
A) Function avgGrades () {} is incorrect.
KA
Kaycee
7 months ago
I feel like I've seen something similar in my notes, but I can't recall if the parentheses should have a space or not.
LU
Lucille
7 months ago
I’m a bit confused about the use of "var" in option D. Isn’t that for variable declarations?
AR
Art
7 months ago
I remember practicing a question that had a similar format, and I think option A looks right to me.
JE
Jeannine
8 months ago
I think the correct syntax for defining a function in JavaScript is something like "function avgGrades() {}", but I'm not completely sure.