Way2tutorial Snippet Editor
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript this Operator</title> </head> <body> <script type="text/javascript"> // Press F12 - View result on Console Panel function employee(name, address, age, married) { this.name = name; this.address = address; this.age = age; this.married = married; } var myObj = new employee("Opal Kole", "63 street Ct.", 48, true); console.log(myObj); </script> </body> </html>