Go has similar loops to those that can be found in Javascript

for loop

func bulkSend(numMessages int) float64 {  
	sum := 0.00  
	for i := 0; i < numMessages; i++ {  
		var j float64 = float64(i) / 100  
		sum = sum + 1.0 + j  
	}  
	return sum  
}```  
  
### for loop without condition  
Go can have for loops without conditions, which will allow a loop to run forever, which works basically like while loop in JavaScript  
```go  
for i := 0; ; i++ {  
	// logic  
}