HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Open the console (Press F12) and Click 'Run' button.</p> <script> function bike(brand, color){ this.brand = brand; this.color = color; } var bike1 = new bike("Honda", "red"); var bike2 = new bike("Yamaha", "black"); var bike3 = new bike("Suzuki", "grey"); console.table([bike1, bike2, bike3], ["color"]); </script> </body> </html>
OUTPUT
×

Save as Private