array infinite loop javascript code example Example: javascript infinite loop while (true) { //your code }