Introduction JavaScript for...in statement. Do you know how to use it? Do you know when to use it? I show you how and when to use it in this article. You need basic knowledge in JavaScript to understand this article. The for Statement We start by looking at the JavaScript for statement, which I assume you already know. The for statement or for loop is normally used for iteration. The syntax for the for statement is: for ([initial-expression]; [condition]; [increment-expression]) { statements }... Sign in to see full entry.