Q. What if we put ; after if? does it really affect? Find the output of below Javascript
Code:
<script> var a = 10; if(a == 20); document.write(a); </script>
β
Correct Answer: (A)
10
<script> var a = 10; if(a == 20); document.write(a); </script>
You must be Logged in to update hint/solution