I am getting hands-on Node.js, and I found it pretty exciting. However, when I was trying to work out with variables I got strange results. When 01234 is assigned to a variable, 668 is displayed as response and when 0123 is assigned, 83 is returned as the response. I failed to understand logic. I am attaching this screengrab.
I checked same in c# and I got expected result. What is happening here in node.js?
