crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>Looping Object Properties</h2> <p id="demo"></p> <script> const myJSON = '{"name":"Ahmed", "age":30, "car":null}'; const myObj = JSON.parse(myJSON); let text = ""; for (const x in myObj) { text += x + ", "; } document.getElementById("demo").innerHTML = text; </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+TG9vcGluZyBPYmplY3QgUHJvcGVydGllczwvaDI+DQo8cCBpZD0iZGVtbyI+PC9wPg0KDQo8c2NyaXB0Pg0KY29uc3QgbXlKU09OID0gJ3sibmFtZSI6IkFobWVkIiwgImFnZSI6MzAsICJjYXIiOm51bGx9JzsNCmNvbnN0IG15T2JqID0gSlNPTi5wYXJzZShteUpTT04pOw0KDQpsZXQgdGV4dCA9ICIiOw0KZm9yIChjb25zdCB4IGluIG15T2JqKSB7DQogIHRleHQgKz0geCArICIsICI7DQp9DQpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiZGVtbyIpLmlubmVySFRNTCA9IHRleHQ7DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==