In this simple jaggery code
for(var i=0;i<10;i++){
print(i);
}
Output was like
0.0
1.0
....
I need to parse these outputs into integer. I tried parseInt(i)
method but it also gave the same result. What could be the reason for that?
In this simple jaggery code
for(var i=0;i<10;i++){
print(i);
}
Output was like
0.0
1.0
....
I need to parse these outputs into integer. I tried parseInt(i)
method but it also gave the same result. What could be the reason for that?
I'm no Jaggery expert, but i have tried your code Try It tool which can be found in Jaggery Website and it gave me expected result.
The sample code i have tried is,
<html>
<body>
<h1>
<%
for(var i=0;i<10;i++){
print(i "\n");
}
%>
</h1>
</body>
</html>
Which gave me output,
0123456789
HTH,
DarRay