I wrote very small code for java script.IN this value of message box are changed but it shows old value(14+32) instead of updated value(14+32+10).
<script type="text/javascript">
var no=(14+32);
alert(no);
no =(14+32+10);
</script>
Can any one say actual reason behind this?
the order ef execution of these statements is sequential and synchronous, so the
alertprint the current value ofnoat the time of its executionor in other words: when you change again the value of
nothealertstatement has been already executed