The problem is the condition becomes false in the first instance of the loop , 5/360 would be 0.013888 which is less than 0.0 , So it would not enter to append the text which you are trying to do. So the loop exists and the object text has only the initial value which was initialized.
For example , if you change the snippet as below it would generate a text:
for (i = 0.0; i <= 5/360 ; i++) {
text = text + "The number is " + i + "<br>";
}
The number is 0
So Kindly check the condition as per you requirement in order to generate text
solved How do I execute a for loop statement in javascript?