Home »
MCQs »
AngularJS MCQs
Consider the below statement – what will be the output (2)?
23. Consider the below statement – what will be the output?
<div data-ng-app="" data-ng-init="qty=3;">
<p>The result is: {{qty * price}}</p>
</div>
- The result is: Undefined
- The result is: 0
- The result is: 3
- The result is: NaN
Answer: D) The result is: NaN
Explanation:
The output of the above statement is: The result is: NaN