Question:What will produce for the following javascript code:<script> var posVal=41; var negVal=-posVal; var diffVal=(posVal-negVal); document.write(diffVal); </script>
<script> var posVal=41; var negVal=-posVal; var diffVal=(posVal-negVal); document.write(diffVal); </script>
A 82 B -82 C 41 D Syntax error
+ AnswerA
+ Report