Question:What will produce the following javascript code fragments:<script> var posNum=30; var negNum=-posNum var outcome=Math.abs(negNum); document.write(outcome); </script>
<script> var posNum=30; var negNum=-posNum var outcome=Math.abs(negNum); document.write(outcome); </script>
A 30 B -30 C true D syntax error
+ AnswerA
+ Report