for loop has been virtually removed

Published: | Categories: JavaScript


While E4X has been deprecated and disabled since Firefox 17, the for statement, standardized as a part of that, has been left for backward compatibility. In Firefox 20, a change has been made to disable the statement unless Web developers explicitly specify JavaScript 1.6 and later like <script type="text/javascript;version=1.6">. You are recommended to replace with the for...of statement that are standardizing in ECMAScript 6.