View Single Post
  #1 (permalink)  
Old April 21st, 2016, 12:58 PM
Madongeer Madongeer is offline
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2015
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chapter 2 - post increment /decrement not working

Hi, I've just started learning javascript with this promising book, but I got stuck in the increment and decrement part. The post increment /decrement not working with me:
HTML Code:
<script> 
var myFirstVariable=1;
var result; 
result=myFirstVariable++;
alert(result);
</script>
It shows the value without any change, that is 1
What am I missing here?
Thanks in advance
Reply With Quote