code to explanationFri, 30 Jun 2023

<script> var a = 5; var b = 6; var c = a + b; document.write(c); </script>

The above statement adds 5 and 6 and assigns the value 11 to the variable c.

Questions about programming?Chat with your personal AI assistant