The javascript for in loop loops through the properties of an object.
In this example script we've created an object variable called Person the object contains three elements
f name l name and age the for in loop will loop through each item of the object and output the data.
Let's go ahead and test this in our web browser to see the result.
We can see that each item in the object has been output.
John Smith in 30.