What will be the output of the given JavaScript code for calculating the area of a square?
Answer options
A
JavaScript Functions
B
Error since there is no variable for getting and storing the result returned from function
C
Error due to invalid function call inside script tag
D
Error in function definition inside script tag
Correct answer: JavaScript Functions
Explanation
The function call is valid and the return value can be directly concatenated into innerHTML. Among the visible options, the non-error output is represented by the page heading/text beginning with JavaScript Functions.