Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Object Data Type</title> </head> <body> <script> let emptyObject = {}; let person = {"name": "Clark", "surname": "Kent", "age": "36"}; // For better reading let car = { "modal": "BMW X3", "color": "white", "doors": 5 } // Print variables values in browser's console console.log(person); console.log(car); </script> <p><strong>Note:</strong> Check out the browser console by pressing the f12 key on the keyboard.</p> </body> </html>