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>
 

A 30 

B -30 

C true 

D syntax error 

+ Answer
+ Report
Total Preview: 694

Copyright © 2024. Powered by Intellect Software Ltd